aws_region ="ap-northeast-2"cidr_numeral ="11"# Please change "devart" to what you want to use# d after name indicates develop. This means that devartd_apnortheast2 VPC is for development environment VPC in Seoul Region.
vpc_name ="devartp_apnortheast2"# Billing tag in this VPCbilling_tag ="prod"# Availability Zone listavailability_zones = ["ap-northeast-2a","ap-northeast-2c"]# In Seoul Region, some resources are not supported in ap-northeast-2bavailability_zones_without_b = ["ap-northeast-2a","ap-northeast-2c"]# shard_id will be used later when creating other resources.# With shard_id, you could distinguish which environment the resource belongs toshard_id ="devartpapne2"shard_short_id ="devart01p"# d means developenv_suffix ="p"# VPC Peering Connection Variables# vpc_peer_connection_id_devartp_apne2 = "pcx-"# devartp_destination_cidr_block = "10.20.0.0/16"
리소스 생성
Terraform plan / apply 를 통해서 리소스를 생성합니다. 과정은 위와 동일하므로 생략합니다.
만약, account가 다른 경우에는 해당 Account로 assume을 다시 하셔야 합니다.