AWS VPC 및 Subnet, Route-table, Internet-Gateway, NAT-Gateway(EIP)을 생성하는 테라폼 모듈입니다. 하단의 내용은 terraform-docs
에 의해 생성되었습니다.
Name | Version |
---|---|
aws | 5.23.1 |
Name | Version |
---|---|
terraform | >= 1.6.0 |
aws | >= 5.0.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_igw | If true, internet-gateway will be created. | bool |
false |
no |
global_additional_tag | Additional tags for all resources. | map(string) |
{ |
no |
igw_tags | A map of tags to assign to the Internet-gateway. | map(string) |
{} |
no |
name_prefix | The name-prefix of all resources. | string |
"tf-poc" |
no |
subnets | The subnet informations | list(object( |
[] |
no |
vpc_cidr_block | The CIDR block for the VPC. | string |
"10.0.0.0/16" |
no |
vpc_enable_dns_hostnames | A boolean flag to enable/disable DNS hostnames in the VPC. | bool |
true |
no |
vpc_enable_dns_support | A boolean flag to enable/disable DNS support in the VPC. | bool |
true |
no |
vpc_tags | A map of tags to assign to the vpc. | map(string) |
{} |
no |
Name | Description |
---|---|
igw_gateway_id | The id of the internet gateway |
natgw_ids | The dictioanry of the nat-gateway id |
natgw_ips | The dictioanry of the nat-gateway public-ips |
route_table_ids | The dictioanry of the route-table id |
subnet_ids | The dictioanry of the subnet id |
vpc_id | The id of the VPC |
module "network" {
source = "github.com/Yunsang-Jeong/terraform-aws-network"
vpc_cidr_block = "10.0.0.0/16"
create_igw = true
subnets = [
{
identifier = "public-a"
availability_zone = "ap-northeast-2a"
cidr_block = "10.0.10.0/24"
enable_route_with_igw = true
create_nat = true
},
{
identifier = "public-c"
availability_zone = "ap-northeast-2c"
cidr_block = "10.0.11.0/24"
enable_route_with_igw = true
create_nat = true
},
{
identifier = "private-a"
availability_zone = "ap-northeast-2a"
cidr_block = "10.0.20.0/24"
enable_route_with_nat = true
},
{
identifier = "private-c"
availability_zone = "ap-northeast-2c"
cidr_block = "10.0.21.0/24"
enable_route_with_nat = true
},
{
identifier = "isolated-a"
availability_zone = "ap-northeast-2a"
cidr_block = "10.0.30.0/24"
},
{
identifier = "isolated-c"
availability_zone = "ap-northeast-2c"
cidr_block = "10.0.31.0/24"
},
]
}