Get information on an EC2 Transit Gateway.
data "aws_ec2_transit_gateway" "example" {
filter {
name = "options.amazon-side-asn"
values = ["64512"]
}
}
data "aws_ec2_transit_gateway" "example" {
id = "tgw-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.name
- (Required) Name of the field to filter by, as defined by the underlying AWS API.values
- (Required) List of one or more values for the filter.This data source exports the following attributes in addition to the arguments above:
amazon_side_asn
- Private Autonomous System Number (ASN) for the Amazon side of a BGP sessionarn
- EC2 Transit Gateway ARNassociation_default_route_table_id
- Identifier of the default association route tableauto_accept_shared_attachments
- Whether resource attachment requests are automatically accepteddefault_route_table_association
- Whether resource attachments are automatically associated with the default association route tabledefault_route_table_propagation
- Whether resource attachments automatically propagate routes to the default propagation route tabledescription
- Description of the EC2 Transit Gatewaydns_support
- Whether DNS support is enabledmulticast_support
- Whether Multicast support is enabledid
- EC2 Transit Gateway identifierowner_id
- Identifier of the AWS account that owns the EC2 Transit Gatewaypropagation_default_route_table_id
- Identifier of the default propagation route tabletags
- Key-value tags for the EC2 Transit Gatewaytransit_gateway_cidr_blocks
- The list of associated CIDR blocksvpn_ecmp_support
- Whether VPN Equal Cost Multipath Protocol support is enabledread
- (Default 20m
)