terraform-aws-modules / terraform-aws-transit-gateway

Terraform module to create AWS Transit Gateway resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/transit-gateway/aws
Apache License 2.0
144 stars 226 forks source link

fix: Create only one transit gateway route table #106

Closed cunymatthieu closed 1 year ago

cunymatthieu commented 1 year ago

Description

Do not create the Transit Gateway route table if the Transit Gateway default route table is set.

Transit Gateway default route table is set when enable_default_route_table_association and enable_default_route_table_propagation are true

Motivation and Context

When you want to create a transit gateway with this module, a TransitGateway is created by default (by terraform). But if we decide to use the Transit Gateway route table that will be created by AWS when the attributes (enable_default_route_table_association enable_default_route_table_propagation) are set to true, then this aws_ec2_transit_gateway_route_table route table is no longer necessary.

related to : https://github.com/terraform-aws-modules/terraform-aws-transit-gateway/issues/105

The goal is not to create an unused route table.

Breaking Changes

There should be no bad effect on backwards compatibility.

How Has This Been Tested?

github-actions[bot] commented 1 year ago

This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days

github-actions[bot] commented 1 year ago

This PR was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.