3. 운영환경 계정 설정
Production Account 세팅
backend와 provider 설정
terraform {
required_version = ">= 1.0.0" # Terraform Version
backend "s3" {
bucket = "art-prod-apnortheast2-tfstate" # Set bucket name
key = "art/terraform/iam/art-prod/terraform.tfstate"
region = "ap-northeast-2"
encrypt = true
dynamodb_table = "terraform-lock" # Set DynamoDB Table
}
}
Assume Role 생성
Variables 정의 및 세팅
Last updated
Was this helpful?