본문 바로가기

리눅스

[iac][terraform] terraform cli install

728x90

terraform cli install

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 2>&1
gpg --no-default-keyring \
    --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
    --fingerprint
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
terraform --version
$ terraform -v
Terraform v1.2.8
on linux_amd64

 

참고URL

- https://www.terraform.io/downloads

- https://learn.hashicorp.com/tutorials/terraform/install-cli

 

728x90