Last active
February 9, 2025 12:43
-
-
Save gryzinsky/7b8a413ee92f8ea92a232800aa84168a to your computer and use it in GitHub Desktop.
Install Terraform and Terragrunt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Install Terraform | |
sudo apt-get update && \ | |
sudo apt-get install -y gnupg software-properties-common curl && \ | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - && \ | |
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" && \ | |
sudo apt-get update && \ | |
sudo apt-get install terraform | |
# Install Terragrunt | |
TERRAGRUNT_EXEC_NAME="terragrunt_linux_amd64" | |
curl -fsSL https://api.github.com/repos/gruntwork-io/terragrunt/releases/latest | \ | |
grep "browser_download_url.*${TERRAGRUNT_EXEC_NAME}" | \ | |
cut -d '"' -f 4 | \ | |
wget -qi - && \ | |
sudo mv ${TERRAGRUNT_EXEC_NAME} /usr/bin/terragrunt && \ | |
sudo chmod +x /usr/bin/terragrunt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment