Resource: awsEc2TransitGatewayConnect
Manages an EC2 Transit Gateway Connect.
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";
const awsEc2TransitGatewayVpcAttachmentExample =
new aws.ec2TransitGatewayVpcAttachment.Ec2TransitGatewayVpcAttachment(
this,
"example",
{
subnetIds: ["${aws_subnet.example.id}"],
transitGatewayId: "${aws_ec2_transit_gateway.example.id}",
vpcId: "${aws_vpc.example.id}",
}
);
new aws.ec2TransitGatewayConnect.Ec2TransitGatewayConnect(this, "attachment", {
transitGatewayId: "${aws_ec2_transit_gateway.example.id}",
transportAttachmentId: awsEc2TransitGatewayVpcAttachmentExample.id,
});
Argument Reference
The following arguments are supported:
protocol
- (Optional) The tunnel protocol. Valida values:gre
. Default isgre
.tags
- (Optional) Key-value tags for the EC2 Transit Gateway Connect. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.transitGatewayDefaultRouteTableAssociation
- (Optional) Boolean whether the Connect should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value:true
.transitGatewayDefaultRouteTablePropagation
- (Optional) Boolean whether the Connect should propagate routes with the EC2 Transit Gateway propagation default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. Default value:true
.transitGatewayId
- (Required) Identifier of EC2 Transit Gateway.transportAttachmentId
- (Required) The underlaying VPC attachment
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- EC2 Transit Gateway Attachment identifiertagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Timeouts
create
- (Default10M
)update
- (Default10M
)delete
- (Default10M
)
Import
awsEc2TransitGatewayConnect
can be imported by using the EC2 Transit Gateway Connect identifier, e.g.,