How do I provide tags to a DX GW (Direct Connect Gateway) associated with a TGW (Transit Gateway)?

When applying a aws_dx_gateway_association resource, my DX GW shows up correctly in the AWS Console under TGW Attachments, but I do not see how I can provide a Name tag in order to get it to display nicely in the Console. Looking at the AWS API docs, it does not look like there’s a Tags parameter for this resource.

Is there any way to automate adding the tags? It’s not the end of the world if I have to go in the console and add it manually, but it is a minor bummer.

Hi @jkodroff,

The TGW attachment is a “derived” resource created by the DX Gateway Association.
There’s an open issue to add resource(s) just to tag such derived resources - https://github.com/terraform-providers/terraform-provider-aws/issues/9061.
Please upvote if you’d like to see this implemented.

Thanks, Kit! And I really appreciate your efforts in adding some of the missing DX GW resources. They were immediately useful to me.