AWS 코드 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/db_cluster_snapshot

 

Terraform Registry

 

registry.terraform.io

 

mkdir ~/terraform-aurora
cd ~/terraform-aurora

terraform init   # 플러그인 초기화
terraform plan   # 실행 계획 확인
terraform apply  # 리소스 생성

 

  • main.tf 생성후 terrafrom build 처리
    • terrafrom init  (초기화)
    • terrafrom plan (확인)
    • terrafrom apply (생성) 

 

    • terrfafom init

 

  • terrafom plan

 

  • terrafom apply

'IAC > Terraform' 카테고리의 다른 글

terraform 설치  (0) 2024.11.29
AWS CLI 설치

# Linux x86 (64-bit)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

 

Terraform 설치
https://developer.hashicorp.com/terraform/install

sudo yum install -y yum-utils shadow-utils
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
sudo yum -y install terraform

which terraform
terraform version

'IAC > Terraform' 카테고리의 다른 글

terraform aurora create  (0) 2024.11.29

+ Recent posts