Vpc Attachment Args
Manages an EC2 Transit Gateway VPC Attachment. For examples of custom route table association and propagation, see the EC2 Transit Gateway Networking Examples Guide.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.VpcAttachment;
import com.pulumi.aws.ec2transitgateway.VpcAttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new VpcAttachment("example", VpcAttachmentArgs.builder()
.subnetIds(aws_subnet.example().id())
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.vpcId(aws_vpc.example().id())
.build());
}
}
Import
aws_ec2_transit_gateway_vpc_attachment
can be imported by using the EC2 Transit Gateway Attachment identifier, e.g.,
$ pulumi import aws:ec2transitgateway/vpcAttachment:VpcAttachment example tgw-attach-12345678
Constructors
Properties
Whether Appliance Mode support is enabled. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. Valid values: disable
, enable
. Default value: disable
.
Whether DNS support is enabled. Valid values: disable
, enable
. Default value: enable
.
Whether IPv6 support is enabled. Valid values: disable
, enable
. Default value: disable
.
Boolean whether the VPC Attachment 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
.
Boolean whether the VPC Attachment 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
.
Identifier of EC2 Transit Gateway.