Skip to content

Data Source: awsEc2TransitGatewayVpcAttachment

Get information on an EC2 Transit Gateway VPC Attachment.

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.dataAwsEc2TransitGatewayVpcAttachment.DataAwsEc2TransitGatewayVpcAttachment(
  this,
  "example",
  {
    filter: [
      {
        name: "vpc-id",
        values: ["vpc-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.dataAwsEc2TransitGatewayVpcAttachment.DataAwsEc2TransitGatewayVpcAttachment(
  this,
  "example",
  {
    id: "tgw-attach-12345678",
  }
);

Argument Reference

The following arguments are supported:

  • filter - (Optional) One or more configuration blocks containing name-values filters. Detailed below.
  • id - (Optional) Identifier of the EC2 Transit Gateway VPC Attachment.

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:

  • applianceModeSupport - Whether Appliance Mode support is enabled.
  • dnsSupport - Whether DNS support is enabled.
  • id - EC2 Transit Gateway VPC Attachment identifier
  • ipv6Support - Whether IPv6 support is enabled.
  • subnetIds - Identifiers of EC2 Subnets.
  • transitGatewayId - EC2 Transit Gateway identifier
  • tags - Key-value tags for the EC2 Transit Gateway VPC Attachment
  • vpcId - Identifier of EC2 VPC.
  • vpcOwnerId - Identifier of the AWS account that owns the EC2 VPC.

Timeouts

Configuration options:

  • read - (Default 20M)