Skip to content

terraform and terragrunt installation

Mostafa Kamal edited this page Jul 2, 2024 · 3 revisions

Local development

You need to install terraform and terragrunt on your machine for local development

macos

terraform

brew tap hashicorp/tap
brew install hashicorp/tap/terraform
# check the version
terraform -version 

source:

terragrunt

brew install terragrunt
#version check
terragrunt --version

source

ubuntu

terraform

wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
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 update && sudo apt install terraform
# check the version
terraform -version 

source:

terragrunt

wget -qO /tmp/terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/v0.57.0/terragrunt_linux_amd64
sudo chmod +x /tmp/terragrunt
sudo mv /tmp/terragrunt /usr/local/bin/terragrunt
version check
terragrunt --version 

source

Clone this wiki locally