-
-
Notifications
You must be signed in to change notification settings - Fork 234
fix: Update routes when doing a vpc attachment #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Update routes when doing a vpc attachment #83
Conversation
This PR has been automatically marked as stale because it has been open 30 days |
can we remove the stale label? |
This PR has been automatically marked as stale because it has been open 30 days |
can we remove the stale label? |
It would be great to have this fixed!! |
Co-authored-by: Brian Murphey <[email protected]>
This PR has been automatically marked as stale because it has been open 30 days |
This is still valid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how much my approval means in the context of this community module, but this does look good to me and I've been using it successfully in my environment.
it would be super great if this PR could be merged, I tested it as well and it works flawlessly. |
I can't request review of the PR. @antonbabenko could you help? |
This PR has been automatically marked as stale because it has been open 30 days |
/remove-lifecycle stale |
can you update/provide an example that demonstrates/validates this change? |
and can we incorporate the changes in #102 |
This PR has been automatically marked as stale because it has been open 30 days |
I totally missed this. Yes, I will try to add an example. |
@bryantbiggs I think that actually the multi-account example covers this scenario. The problem is that here: https://github.com/terraform-aws-modules/terraform-aws-transit-gateway/blob/master/main.tf#L117 we only cover the case when the attachment is created when the tgw is created as well. When we just do an attachment with Here is the example - https://github.com/velkovb/terraform-aws-transit-gateway/blob/fix/vpc-attachment-routes/examples/multi-account/main.tf#L98. I think it should be broken with current implementation. |
This PR has been automatically marked as stale because it has been open 30 days |
This PR was automatically closed because of stale in 10 days |
Can we re-open this PR? |
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. |
Description
The VPC attachment block supports adding routes to an existing route table but that only works when you are creating a transit gateway. When you are just attaching a VPC to a shared gateway it doesn't work as it only looks at the Id of the internal resource.
Motivation and Context
This change would allow to update route tables when attaching VPCs to a shared transit gateway by taking parsing the tgw_id attribute as well. Logic is replicated from the
aws_ec2_transit_gateway_vpc_attachment
resource.Breaking Changes
Not a breaking change.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s).examples/*
projects. It was tested with similar implementation to the multi-account setup.pre-commit run -a
on my pull request