File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
457
457
| private\_ subnet\_ suffix | Suffix to append to private subnets name | ` string ` | ` "private" ` | no |
458
458
| private\_ subnet\_ tags | Additional tags for the private subnets | ` map(string) ` | ` {} ` | no |
459
459
| private\_ subnets | A list of private subnets inside the VPC | ` list(string) ` | ` [] ` | no |
460
+ | propagate\_ intra\_ route\_ tables\_ vgw | Should be true if you want route table propagation | ` bool ` | ` false ` | no |
460
461
| propagate\_ private\_ route\_ tables\_ vgw | Should be true if you want route table propagation | ` bool ` | ` false ` | no |
461
462
| propagate\_ public\_ route\_ tables\_ vgw | Should be true if you want route table propagation | ` bool ` | ` false ` | no |
462
463
| public\_ acl\_ tags | Additional tags for the public subnets network ACL | ` map(string) ` | ` {} ` | no |
Original file line number Diff line number Diff line change @@ -1066,6 +1066,19 @@ resource "aws_vpn_gateway_route_propagation" "private" {
1066
1066
)
1067
1067
}
1068
1068
1069
+ resource "aws_vpn_gateway_route_propagation" "intra" {
1070
+ count = var. create_vpc && var. propagate_intra_route_tables_vgw && (var. enable_vpn_gateway || var. vpn_gateway_id != " " ) ? length (var. intra_subnets ) : 0
1071
+
1072
+ route_table_id = element (aws_route_table. intra . * . id , count. index )
1073
+ vpn_gateway_id = element (
1074
+ concat (
1075
+ aws_vpn_gateway. this . * . id ,
1076
+ aws_vpn_gateway_attachment. this . * . vpn_gateway_id ,
1077
+ ),
1078
+ count. index ,
1079
+ )
1080
+ }
1081
+
1069
1082
# ##########
1070
1083
# Defaults
1071
1084
# ##########
Original file line number Diff line number Diff line change @@ -1333,6 +1333,12 @@ variable "vpn_gateway_az" {
1333
1333
default = null
1334
1334
}
1335
1335
1336
+ variable "propagate_intra_route_tables_vgw" {
1337
+ description = " Should be true if you want route table propagation"
1338
+ type = bool
1339
+ default = false
1340
+ }
1341
+
1336
1342
variable "propagate_private_route_tables_vgw" {
1337
1343
description = " Should be true if you want route table propagation"
1338
1344
type = bool
You can’t perform that action at this time.
0 commit comments