Terraform module to provision AWS Transit Gateway, AWS Resource Access Manager (AWS RAM) Resource, and share the Transit Gateway with the Organization or another AWS Account.
Optionally use for_each instead of count when creating routes
Avoid setting transit_gateway_default_route_table_association and transit_gateway_default_route_table_propagation in aws_ec2_transit_gateway_vpc_attachment
why
Avoid unnecessary changes when making necessary ones
These were not previously configurable (always set to false) and configuring them is not supported when using Resource Access Manager, so setting them false caused Terraform to always plan changes to them. At least by leaving them unset/default we can avoid constant plan changes.
what
for_each
instead ofcount
when creating routestransit_gateway_default_route_table_association
andtransit_gateway_default_route_table_propagation
inaws_ec2_transit_gateway_vpc_attachment
why
false
) and configuring them is not supported when using Resource Access Manager, so setting themfalse
caused Terraform to always plan changes to them. At least by leaving them unset/default we can avoid constant plan changes.references