Infrastructure/Terraform

[Terraform] MacOs Local에 Terraform 설치 및 NCP가이드 안내

MingyuKim 2025. 3. 14.

테라폼은 인프라를 코드로 관리하는 도구(IaC)로, 클라우드 리소스를 선언적으로 정의하고 자동으로 프로비저닝 할 수 있도록 도와주는 open source 소프트웨어입니다. 테라폼은 로컬 컴퓨터나 별도의 관리 서버에 프로그램을 설치해서 사용할 수도 있고, 선언적 코드만 작성하여 gitlab 혹은 github으로 관리하며 파이프라인에서 자동으로 실행하는 환경을 구성할 수도 있다고 하는데, 저는 첫 발자국을 내딛을 겸 MacOS 로컬 컴퓨터에서 Terraform을 설치하여 현재 사용하고 있는 Naver Cloud Platform과 연동해보려고 합니다.


Terraform Install In Local MacOs

설치는 hashicorp 공식 문서의 terraform 설치 가이드를 참고하였습니다.

 

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

brew update
brew tap hashicorp/tap
brew install hashicorp/tap/terraform

[Terraform] MacOs Local에 Terraform 설치 및 NCP가이드 안내 - Terraform Install In Local MacOs


테라폼 공식 레지스트리에 들어가보면 파트너를 맺은 클라우드 밴더사들이 보이는데, 저는 ncloud를 찾아서 해당 가이드 문서를 참고하였습니다.

 

Terraform Registry

 ...

registry.terraform.io

 

 

terraform-provider-ncloud/examples/vpc/scenario01/main.tf at main · NaverCloudPlatform/terraform-provider-ncloud

Terraform NaverCloud provider. Contribute to NaverCloudPlatform/terraform-provider-ncloud development by creating an account on GitHub....

github.com

앞으로 테라폼을 사용해서 NCP의 resource들을 생성 및 관리하는 방법들을 자세히 알아보도록 하겠습니다.

댓글