Terraform module to manage an AWS VPC using the CIDR provided by an IPAM pool and attaching the VPC to a transit gateway.
This module will be merged with https://github.com/schubergphilis/terraform-aws-mcaf-vpc in the future.
Name | Version |
---|---|
terraform | >= 1.3 |
aws | >= 5.20 |
Name | Version |
---|---|
aws | >= 5.20 |
aws.transit_gateway_account | >= 5.20 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
availability_zones | A list of availability zones names or ids in the region. | list(string) |
n/a | yes |
aws_vpc_ipam_pool | ID of the IPAM pool to get CIDRs from. | string |
n/a | yes |
name | Name to be used on all the resources as identifier. | string |
n/a | yes |
networks | A list of objects describing requested subnetwork prefixes. | list(object({ |
n/a | yes |
cloudwatch_flow_logs_configuration | Cloudwatch flow logs configuration | object({ |
{} |
no |
enable_dns_hostnames | Enable DNS hostnames in the VPC. | bool |
true |
no |
manage_default_vpc | Should be true to adopt and manage the default VPC. | bool |
true |
no |
tags | A map of tags to add to all resources. | map(string) |
{} |
no |
transit_gateway_appliance_mode_support | Enable to attach the VPC in appliance mode on the Transit Gateway. | bool |
false |
no |
transit_gateway_id | Transit Gateway ID. | string |
"" |
no |
transit_gateway_route_table_association | Transit Gateway route table ID to attach the VPC on. | string |
"" |
no |
transit_gateway_route_table_propagation | Transit Gateway route table ID's to propagate the VPC CIDR to. | list(string) |
[] |
no |
vpc_cidr_netmask | The netmask length of the IPv4 CIDR you want to allocate to this VPC. | number |
20 |
no |
Name | Description |
---|---|
nat_gateway_ids | List of NAT Gateway IDs |
route_table_ids | Map of all networks in the VPC and their subnets |
subnet_ids | Map of all networks in the VPC and their subnets |
subnets | Map of all subnets in the VPCs |
transit_gateway_attachment_id | Transit Gateway attachment ID |
vpc_arn | The ARN of the VPC |
vpc_cidr_block | The CIDR block of the VPC |
vpc_id | The ID of the VPC |
100% Open Source and licensed under the Apache License Version 2.0. See LICENSE for full details.