Data Source: awsEc2TransitGatewayConnectPeer
Get information on an EC2 Transit Gateway Connect Peer.
Example Usage
By Filter
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2TransitGatewayConnectPeer.DataAwsEc2TransitGatewayConnectPeer(
this,
"example",
{
filter: [
{
name: "transit-gateway-attachment-id",
values: ["tgw-attach-12345678"],
},
],
}
);
By Identifier
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2TransitGatewayConnectPeer.DataAwsEc2TransitGatewayConnectPeer(
this,
"example",
{
transitGatewayConnectPeerId: "tgw-connect-peer-12345678",
}
);
Argument Reference
The following arguments are supported:
filter
- (Optional) One or more configuration blocks containing name-values filters. Detailed below.transitGatewayConnectPeerId
- (Optional) Identifier of the EC2 Transit Gateway Connect Peer.
filter Argument Reference
name
- (Required) Name of the filter.values
- (Required) List of one or more values for the filter.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
arn
- EC2 Transit Gateway Connect Peer ARNbgpAsn
- BGP ASN number assigned customer deviceinsideCidrBlocks
- CIDR blocks that will be used for addressing within the tunnel.peerAddress
- IP addressed assigned to customer device, which is used as tunnel endpointtags
- Key-value tags for the EC2 Transit Gateway Connect PeertransitGatewayAddress
- The IP address assigned to Transit Gateway, which is used as tunnel endpoint.transitGatewayAttachmentId
- The Transit Gateway Connect
Timeouts
read
- (Default20M
)