Get information on an EC2 Transit Gateway Peering Attachment.
data "aws_ec2_transit_gateway_peering_attachment" "example" {
filter {
name = "transit-gateway-attachment-id"
values = ["tgw-attach-12345678"]
}
}
data "aws_ec2_transit_gateway_peering_attachment" "attachment" {
id = "tgw-attach-12345678"
}
This data source supports the following arguments:
filter
- (Optional) One or more configuration blocks containing name-values filters. Detailed below.id
- (Optional) Identifier of the EC2 Transit Gateway Peering Attachment.tags
- (Optional) Mapping of tags, each pair of which must exactly match
a pair on the specific EC2 Transit Gateway Peering Attachment to retrieve.More complex filters can be expressed using one or more filter
sub-blocks,
which take the following arguments:
name
- (Required) Name of the field to filter by, as defined by
the underlying AWS API.values
- (Required) Set of values that are accepted for the given field.
An EC2 Transit Gateway Peering Attachment be selected if any one of the given values matches.This data source exports the following attributes in addition to the arguments above:
peer_account_id
- Identifier of the peer AWS accountpeer_region
- Identifier of the peer AWS regionpeer_transit_gateway_id
- Identifier of the peer EC2 Transit Gatewaytransit_gateway_id
- Identifier of the local EC2 Transit Gatewayread
- (Default 20m
)