git checkout -b feature/network
deploy
디렉토리 내 network.tf 파일 생성
resource "aws_vpc" "main" {
cidr_block = "10.1.0.0/16"
enable_dns_support = true
enable_dns_hostnames = true
tags = merge(
local.common_tags,
map("Name", "${local.prefix}-vpc")
)
}
resource "aws_internet_gateway" "main" {
vpc_id = aws_vpc.main.id
tags = merge(
local.common_tags,
map("Name", "${local.prefix}-main")
)
}
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc