Skip to content

Resource: awsEc2TransitGatewayPolicyTableAssociation

Manages an EC2 Transit Gateway Policy Table association.

Example Usage

/*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.ec2TransitGatewayPolicyTableAssociation.Ec2TransitGatewayPolicyTableAssociation(
  this,
  "example",
  {
    transitGatewayAttachmentId:
      "${aws_networkmanager_transit_gateway_peering.example.transit_gateway_peering_attachment_id}",
    transitGatewayPolicyTableId:
      "${aws_ec2_transit_gateway_policy_table.example.id}",
  }
);

Argument Reference

The following arguments are supported:

  • transitGatewayAttachmentId - (Required) Identifier of EC2 Transit Gateway Attachment.
  • transitGatewayPolicyTableId - (Required) Identifier of EC2 Transit Gateway Policy Table.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - EC2 Transit Gateway Policy Table identifier combined with EC2 Transit Gateway Attachment identifier
  • resourceId - Identifier of the resource
  • resourceType - Type of the resource

Import

awsEc2TransitGatewayPolicyTableAssociation can be imported by using the EC2 Transit Gateway Policy Table identifier, an underscore, and the EC2 Transit Gateway Attachment identifier, e.g.,

$ terraform import aws_ec2_transit_gateway_policy_table_association.example tgw-rtb-12345678_tgw-attach-87654321