You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your request related to a new offering from AWS?
No.
Is your request related to a problem? Please describe.
var.create_tgw short-circuits creation of aws_ec2_transit_gateway_route and prevents using this module when a TGW already exists but the TGW routes should be created:
fork, vinvar.vpc_attachments:setproduct([{ key = k }], v.tgw_routes) ifvar.create_tgw&&can(v.tgw_routes)
]), 2)
This use case is relevant when the Transit Gateway is managed in one configuration / state, but the VPC attachments and their routes are managed elsewhere.
It is not clear if this use case is actually intended to be supported, hence why this issue is a feature request and not a bug report. For example, aws_ec2_transit_gateway_vpc_attachment is created even when var.create_tgw, but as mentioned above, aws_ec2_transit_gateway_route is not. Moreover, this use case is not documented.
Change this logic such that aws_ec2_transit_gateway_route when var.create_tgw is false
Describe alternatives you've considered.
None
Additional context
The text was updated successfully, but these errors were encountered:
korenyoni
changed the title
Support use case for using existing Transit Gateway
Support (and document) use case for using existing Transit Gateway
May 30, 2022
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
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.
Is your request related to a new offering from AWS?
No.
Is your request related to a problem? Please describe.
var.create_tgw
short-circuits creation ofaws_ec2_transit_gateway_route
and prevents using this module when a TGW already exists but the TGW routes should be created:terraform-aws-transit-gateway/main.tf
Lines 2 to 5 in 3a3d9f1
This use case is relevant when the Transit Gateway is managed in one configuration / state, but the VPC attachments and their routes are managed elsewhere.
It is not clear if this use case is actually intended to be supported, hence why this issue is a feature request and not a bug report. For example,
aws_ec2_transit_gateway_vpc_attachment
is created even whenvar.create_tgw
, but as mentioned above,aws_ec2_transit_gateway_route
is not. Moreover, this use case is not documented.terraform-aws-transit-gateway/main.tf
Line 68 in 3a3d9f1
Describe the solution you'd like.
Change this logic such that
aws_ec2_transit_gateway_route
whenvar.create_tgw
isfalse
Describe alternatives you've considered.
None
Additional context
The text was updated successfully, but these errors were encountered: