Get information on an EC2 Transit Gateway Connect Peer.
data "aws_ec2_transit_gateway_connect_peer" "example" {
filter {
name = "transit-gateway-attachment-id"
values = ["tgw-attach-12345678"]
}
}
data "aws_ec2_transit_gateway_connect_peer" "example" {
transit_gateway_connect_peer_id = "tgw-connect-peer-12345678"
}
This data source supports the following arguments:
filter
- (Optional) One or more configuration blocks containing name-values filters. Detailed below.transit_gateway_connect_peer_id
- (Optional) Identifier of the EC2 Transit Gateway Connect Peer.name
- (Required) Name of the filter.values
- (Required) List of one or more values for the filter.This data source exports the following attributes in addition to the arguments above:
arn
- EC2 Transit Gateway Connect Peer ARNbgp_asn
- BGP ASN number assigned customer devicebgp_peer_address
- The IP address assigned to customer device, which is used as BGP IP address.bgp_transit_gateway_addresses
- The IP addresses assigned to Transit Gateway, which are used as BGP IP addresses.inside_cidr_blocks
- CIDR blocks that will be used for addressing within the tunnel.peer_address
- IP addressed assigned to customer device, which is used as tunnel endpointtags
- Key-value tags for the EC2 Transit Gateway Connect Peertransit_gateway_address
- The IP address assigned to Transit Gateway, which is used as tunnel endpoint.transit_gateway_attachment_id
- The Transit Gateway Connectread
- (Default 20m
)