Skip to content

Commit

Permalink
- vpc-transit-gateway-association/self
Browse files Browse the repository at this point in the history
  - add route propagation for vpc into VPN route table
  - if vpn_route_prefix_list_name == null, do not create vpn route or route propagation
  • Loading branch information
badra001 committed Dec 7, 2022
1 parent 09c8245 commit 16b0916
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,9 @@
* 2.4.4 -- 2022-11-04
- subnets
- add offset, enabled, availability_zone

* 2.4.5 -- 2022-12-07
- vpc-transit-gateway-association/self
- add route propagation for vpc into VPN route table
- if vpn_route_prefix_list_name == null, do not create vpn route or route propagation

2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
_module_version = "2.4.4"
_module_version = "2.4.5"
_module_names = {
"_main_" = "aws-vpc-setup"

Expand Down
2 changes: 1 addition & 1 deletion vpc-transit-gateway-association/self/associate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ resource "aws_ec2_transit_gateway_route_table_propagation" "vpc_self_common" {
#---
resource "aws_ec2_transit_gateway_route_table_propagation" "vpn_vpc_self_own_rt" {
provider = aws.self
for_each = { (var.transit_gateway_environment) = var.data_input.map_vpn_route_tables_self[var.transit_gateway_environment] }
for_each = var.vpn_route_prefix_list_name != null ? { (var.transit_gateway_environment) = var.data_input.map_vpn_route_tables_self[var.transit_gateway_environment] } : {}

transit_gateway_attachment_id = aws_ec2_transit_gateway_vpc_attachment.vpc_attachment.id
transit_gateway_route_table_id = each.value
Expand Down

0 comments on commit 16b0916

Please sign in to comment.