Closed cunymatthieu closed 1 year ago
I have a similar use case.
I don't want a transit gateway route table at all, as I need to create additional route tables and I don't need/want to use the default one.
So, it would be possible to add a configuration parameter for avoiding the creation of the default routing table (and related resources of course)?
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue is a clone of another one already closed for inactivity .. is there any chance that this one could be taken into account without being automatically closed? :)
Meanwhile i was thinking to able to create multiple route table as planning to use this transit gateway as a shared service, like a hub and spoke topology.
Meanwhile i was thinking to able to create multiple route table as planning to use this transit gateway as a shared service, like a hub and spoke topology.
Yep, hub-spoke is exactly my use case
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Currently the module creates a Transit Gateway route table when the
create_tgw
variable is set totrue
. However, when we indicate to the transit gateway that we want a default route table (enable_default_route_table_association
andenable_default_route_table_propagation
), the route table resourceaws_ec2_transit_gateway_route_table
is no longer used since AWS will automatically create a routing table (by the way, it is tagged here, since it is not created by Terraform).The idea is not to create this Transit Gateway Route table not used. When we want to use the default Route Table.
Versions
Module version [Required]:
2.9.0
Terraform version:
v1.4.2
Provider version(s):
4.60.0
Reproduction Code [Required]
I only want to create a TransitGateway and a default TransitGateway Route Table.
Expected behavior
The resource
aws_ec2_transit_gateway_route_table
is not created. However the default Transit Gateway Route Table is created.We can find the route table id in these outputs in
ec2_transit_gateway_association_default_route_table_id
andec2_transit_gateway_propagation_default_route_table_id
.Actual behavior
Currently 2 routing tables are created and owned by the Transit Gateway.