Skip to content

Commit

Permalink
Fix boot (#36)
Browse files Browse the repository at this point in the history
* updating terraform install

* updating startup

* fix boot

* updated tfdocs install
  • Loading branch information
gamethis authored Aug 13, 2024
1 parent 7de3dcc commit 258241a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
26 changes: 13 additions & 13 deletions .devcontainer/code_space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,23 @@ function getLatestRepoVersion() {

echo "Install Terraform Docs"

TFDOCS_VERSION: 0.18.0
TFDOCS_VERSION=0.18.0
sudo go install github.com/terraform-docs/terraform-docs@v${TFDOCS_VERSION}
echo "Done Installing Terraform Docs"
echo "========================="

echo "Install Terraform"
VERSION=$(getLatestVersion)
cd ~
wget "https://releases.hashicorp.com/terraform/"$VERSION"/terraform_"$VERSION"_linux_amd64.zip"
unzip -o "terraform_"$VERSION"_linux_amd64.zip"
sudo install terraform /usr/local/bin/

sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list

sudo apt-get update -y
sudo apt-get install terraform -y
terraform --version
echo "Done Installing Terraform"
echo "========================="

Expand Down Expand Up @@ -83,8 +88,6 @@ trivy server --download-db-only
echo "Done install trivy"
echo "========================="



echo "run pre-commit"
pre-commit run --all-files
echo "Done running pre-commit"
Expand Down Expand Up @@ -139,10 +142,7 @@ pip3 install hvac
echo "============"

echo "Install tfupdate"
$REPO="minamijoyo/tfupdate"
$LATEST=getLatestRepoVersion "${REPO}"
wget https://github.com/${REPO}/releases/${LATEST}/download/tfupdate_${LATEST}_linux_amd64.tar.gz
sudo tar -xvlsf tfupdate_${LATEST}_linux_amd64.tar.gz -C /usr/local/bin tfupdate
sudo go install github.com/minamijoyo/tfupdate@latest
tfupdate --version
echo "Done installing tfupdate"
echo "============"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ exercise2/Dockerfile
*/act
Bonkey-Container-Update.yaml
HelloWorld.txt
tflint_linux_amd64.zip
2 changes: 1 addition & 1 deletion exercise1/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = "2.5.1"
}
}
required_version = "1.9.2"
required_version = "1.9.4"
}
2 changes: 1 addition & 1 deletion exercise6/modules/helloworld/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = "2.5.1"
}
}
required_version = "1.9.2"
required_version = "1.9.4"
}
2 changes: 1 addition & 1 deletion exercise6/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = "2.5.1"
}
}
required_version = "1.9.2"
required_version = "1.9.4"
}
2 changes: 1 addition & 1 deletion modules/module1/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = "2.5.1"
}
}
required_version = "1.9.2"
required_version = "1.9.4"
}
2 changes: 1 addition & 1 deletion modules/module2/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = "2.5.1"
}
}
required_version = "1.9.2"
required_version = "1.9.4"
}

0 comments on commit 258241a

Please sign in to comment.