Difference between revisions of "Terraform installation"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
* Linux: | * Linux: | ||
− | sudo [[apt-get update]] && sudo apt-get install -y [[gnupg]] [[software-properties-common]] [[curl]] | + | 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]] - | [[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-add-repository]] "deb [arch=amd64] https://apt.releases.hashicorp.com $([[lsb_release -cs]]) main" |
Revision as of 11:37, 20 December 2023
- macOS:
brew install terraform
- Ubuntu:
snap install terraform
orsnap install terraform-snap
- Amazon Linux
sudo yum install -y yum-utils && sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo && sudo yum -y install terraform
- Linux:
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 -qq update && sudo apt-get install terraform && terraform -v
Ref: https://learn.hashicorp.com/tutorials/terraform/install-cli
See also
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: