인프라/Terraform

[인프라] 맥 M1 Terraform 설치방법

believekim 2025. 1. 23. 16:04

 

아래를 참고하여 작성하였다.

https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli?in=terraform%2Faws-get-started

 

Install Terraform | Terraform | HashiCorp Developer

Install Terraform on Mac, Linux, or Windows by downloading the binary or using a package manager (Homebrew or Chocolatey). Then create a Docker container locally by following a quick-start tutorial to check that Terraform installed correctly.

developer.hashicorp.com

 

 

시스템환경
OS : Mac M1
Terminal : iTerm

 

 

 

1. 저장소 HashiCorp 설치

brew tap hashicorp/tap

 

 

2. Terraform 설치

brew install hashicorp/tap/terraform

 

 

3. Terraform 확인

terraform -v

 

 

 

4. 명령어 기본사항 확인

terraform -help

 

 

  • init : 프로젝트 초기화
terraform init

 

  • apply : 생성
terraform apply

 

 

  • destroy : 삭제
terraform destroy