-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Allow aws_dx_gateway_association and aws_dx_private_virtual_interface to reference Transit Gateway #8490
Comments
I would suggest Changes to |
I'm going to split the work into separate PRs to keep the change sets smaller: |
Associating a DX Gateway with a Transit Gateway automatically creates the Transit Gateway Attachment for the DX Gateway. This differs from connecting a VPC to a Transit Gateway where you would use the Will there be a way to get the ID of this auto-created Transit Gateway Attachment when using the |
@ewbankkit I wanted to point out that I made a typo in a previous post of |
@heycasey RE #8490 (comment) - I'll investigate. It doesn't look like the EC2 API |
@heycasey If I associate a DX Gateway with a transit gateway the transit gateway association is created with resource type $ aws --region us-west-2 ec2 describe-transit-gateway-attachments
{
"TransitGatewayAttachments": [
{
"ResourceOwnerId": "000000000000",
"TransitGatewayAttachmentId": "tgw-attach-00000000000000000",
"ResourceType": "direct-connect-gateway",
"ResourceId": "00000000-0000-0000-0000-000000000000",
"Tags": [],
"CreationTime": "2019-05-09T15:31:38.000Z",
"State": "available",
"TransitGatewayId": "tgw-00000000000000000",
"TransitGatewayOwnerId": "000000000000",
"Association": {
"State": "associated",
"TransitGatewayRouteTableId": "tgw-rtb-00000000000000000"
}
}
]
} It looks like we'll need a new |
@heycasey I think I'll also add the transit gateway attachment ID as a Computed attribute on the DX Gateway association as I will need to obtain it at some point in order to ensure that the attachment is deleted when the association is deleted. Otherwise we'll get errors like
plus the acceptance tests will fail with the same error. |
Hi there, is there anything holding back the PRs? Looks like @heycasey addressed the comments! Thanks |
Two new resources @heycasey / @ewbankkit does anything else need to be completed for this issue? |
I believe we have covered most, if not all, of the required functionality of this issue with the upcoming 2.40.0 release of the Terraform AWS Provider. Please use new feature request issues for anything still outstanding. 👍 |
This has been released in version 2.40.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
Transit Gateway now allows support for Direct Connect via a Direct Connect Gateway. The aws_dx_gateway_association should be updated to allow a transit_gateway_id argument. In addition, the aws_dx_private_virtual_interface should be updated to allow a Transit virtual interface type, or a new aws_dx_transit_virtual_interface resource can be introduced.
New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: