Data Source: aws_ec2_transit_gateway_vpc_attachment#
Provides information about a transit gateway VPC attachment.
Example Usage#
By Filter#
data "aws_ec2_transit_gateway_vpc_attachment" "selected" {
filter {
name = "vpc-id"
values = ["vpc-12345678"]
}
}
By Identifier#
data "aws_ec2_transit_gateway_vpc_attachment" "selected" {
id = "tgw-attach-12345678"
}
Argument Reference#
The following arguments are supported:
filter
- (Optional) One or more configuration blocks containing name-values filters. The structure of this block is described below.id
- (Optional) The ID of the transit gateway VPC attachment.
filter#
name
- (Required) The name of the field to filter by it. Valid values can be found in the EC2 API documentation.values
- (Required) List of one or more values for the filter.
Attribute Reference#
Supported attributes#
In addition to all arguments above, the following attributes are exported:
id
- The ID of the transit gateway attachment.subnet_ids
- List of subnet IDs.transit_gateway_id
- The ID of the transit gateway.tags
- Map of tags assigned to the transit gateway VPC attachment.vpc_id
- The ID of the VPC.vpc_owner_id
- The ID of the project that owns the VPC.
Unsupported attributes#
~> Note These attributes may be present in the terraform.tfstate
file but they have preset values and cannot be specified in configuration files.
The following attributes are not currently supported:
appliance_mode_support
, dns_support
, ipv6_support
.