In the previous scenario all private subnets of all VPC can reach to each other, imagine we need specific connectivities, for example:
- VPC-0: Connects only with VPC-1
- VPC-1: Connects with VPC-0 and VPC-2
- VPC-2: Connects only with VPC-1
Name | Version |
---|---|
terraform | ~> 1.0 |
aws | ~> 4.9 |
Name | Version |
---|---|
aws | 4.63.0 |
No modules.
Name | Type |
---|---|
aws_ec2_transit_gateway.this | resource |
aws_ec2_transit_gateway_route_table.this | resource |
aws_ec2_transit_gateway_route_table_association.this | resource |
aws_ec2_transit_gateway_route_table_propagation.vpc_0_to_vpc_1 | resource |
aws_ec2_transit_gateway_route_table_propagation.vpc_1_to_vpc_0 | resource |
aws_ec2_transit_gateway_route_table_propagation.vpc_1_to_vpc_2 | resource |
aws_ec2_transit_gateway_route_table_propagation.vpc_2_to_vpc_1 | resource |
aws_ec2_transit_gateway_vpc_attachment.this | resource |
aws_route.route | resource |
aws_route_tables.this | data source |
aws_subnets.private | data source |
aws_vpc.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
profile | Profile name configured in .aws | string |
"toninoes-aws2" |
no |
region | AWS region to deploy this | string |
n/a | yes |
vpc_number | Number of existing VPCs in this region to attach. | number |
3 |
no |
No outputs.