added terrform things

This commit is contained in:
Jun-te Kim 2025-03-31 14:05:06 +00:00
parent 8ee0a236f9
commit 05cdf0e306
3 changed files with 22 additions and 1 deletions

View file

@ -17,5 +17,24 @@ RUN useradd -m -s /usr/bin/bash ${USER} \
# Install Poetry
RUN pip install --no-cache-dir poetry
# Install aws
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
# Install terraform
RUN apt-get update && sudo apt-get install -y gnupg software-properties-common
RUN wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
tee /etc/apt/sources.list.d/hashicorp.list
RUN apt update
RUN apt-get install terraform
RUN terraform -install-autocomplete
# Set the working directory
WORKDIR /workspaces/survey-extractor

View file

@ -7,6 +7,7 @@
"postStartCommand": "bash .devcontainer/post-install.sh",
"mounts": [
"source=${localEnv:HOME},target=/workspaces/home,type=bind",
"source=${localEnv:HOME}/.aws,target=/home/vscode/.aws,type=bind"
],
"customizations": {
"vscode": {
@ -18,7 +19,8 @@
"ms-toolsai.jupyter",
"mechatroner.rainbow-csv",
"ms-toolsai.datawrangler",
"lindacong.vscode-book-reader"
"lindacong.vscode-book-reader",
"4ops.terraform"
]
}
}