Skip to content

Transit Gateway Attachment resources and data sources: Add arn attributeย #40923

Closed
@gdavison

Description

Description

The data source aws_ec2_transit_gateway_attachment calculates an arn value based on the format arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-attachment/${TransitGatewayAttachmentId}, documented at https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html#amazonec2-resources-for-iam-policies

The Transit Gateway Attachment resource types and the type-specific data sources do not calculate the ARN. Do so.

Affected Resource(s) and/or Data Source(s)

  • data.aws_ec2_transit_gateway_dx_gateway_attachment
  • aws_ec2_transit_gateway_peering_attachment
  • data.aws_ec2_transit_gateway_peering_attachment
  • aws_ec2_transit_gateway_vpc_attachment
  • data.aws_ec2_transit_gateway_vpc_attachment

Potential Terraform Configuration

References

No response

Would you like to implement a fix?

None

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/transitgatewayIssues and PRs that pertain to the transitgateway service.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions