1. Packages
  2. AWS Classic
  3. API Docs
  4. ec2transitgateway
  5. VpcAttachment

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.ec2transitgateway.VpcAttachment

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2transitgateway.VpcAttachment("example", {
        subnetIds: [exampleAwsSubnet.id],
        transitGatewayId: exampleAwsEc2TransitGateway.id,
        vpcId: exampleAwsVpc.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2transitgateway.VpcAttachment("example",
        subnet_ids=[example_aws_subnet["id"]],
        transit_gateway_id=example_aws_ec2_transit_gateway["id"],
        vpc_id=example_aws_vpc["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ec2transitgateway.NewVpcAttachment(ctx, "example", &ec2transitgateway.VpcAttachmentArgs{
    			SubnetIds: pulumi.StringArray{
    				exampleAwsSubnet.Id,
    			},
    			TransitGatewayId: pulumi.Any(exampleAwsEc2TransitGateway.Id),
    			VpcId:            pulumi.Any(exampleAwsVpc.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ec2TransitGateway.VpcAttachment("example", new()
        {
            SubnetIds = new[]
            {
                exampleAwsSubnet.Id,
            },
            TransitGatewayId = exampleAwsEc2TransitGateway.Id,
            VpcId = exampleAwsVpc.Id,
        });
    
    });
    
    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(exampleAwsSubnet.id())
                .transitGatewayId(exampleAwsEc2TransitGateway.id())
                .vpcId(exampleAwsVpc.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2transitgateway:VpcAttachment
        properties:
          subnetIds:
            - ${exampleAwsSubnet.id}
          transitGatewayId: ${exampleAwsEc2TransitGateway.id}
          vpcId: ${exampleAwsVpc.id}
    

    Create VpcAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcAttachment(name: string, args: VpcAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def VpcAttachment(resource_name: str,
                      args: VpcAttachmentArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcAttachment(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      subnet_ids: Optional[Sequence[str]] = None,
                      transit_gateway_id: Optional[str] = None,
                      vpc_id: Optional[str] = None,
                      appliance_mode_support: Optional[str] = None,
                      dns_support: Optional[str] = None,
                      ipv6_support: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      transit_gateway_default_route_table_association: Optional[bool] = None,
                      transit_gateway_default_route_table_propagation: Optional[bool] = None)
    func NewVpcAttachment(ctx *Context, name string, args VpcAttachmentArgs, opts ...ResourceOption) (*VpcAttachment, error)
    public VpcAttachment(string name, VpcAttachmentArgs args, CustomResourceOptions? opts = null)
    public VpcAttachment(String name, VpcAttachmentArgs args)
    public VpcAttachment(String name, VpcAttachmentArgs args, CustomResourceOptions options)
    
    type: aws:ec2transitgateway:VpcAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var vpcAttachmentResource = new Aws.Ec2TransitGateway.VpcAttachment("vpcAttachmentResource", new()
    {
        SubnetIds = new[]
        {
            "string",
        },
        TransitGatewayId = "string",
        VpcId = "string",
        ApplianceModeSupport = "string",
        DnsSupport = "string",
        Ipv6Support = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TransitGatewayDefaultRouteTableAssociation = false,
        TransitGatewayDefaultRouteTablePropagation = false,
    });
    
    example, err := ec2transitgateway.NewVpcAttachment(ctx, "vpcAttachmentResource", &ec2transitgateway.VpcAttachmentArgs{
    	SubnetIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TransitGatewayId:     pulumi.String("string"),
    	VpcId:                pulumi.String("string"),
    	ApplianceModeSupport: pulumi.String("string"),
    	DnsSupport:           pulumi.String("string"),
    	Ipv6Support:          pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TransitGatewayDefaultRouteTableAssociation: pulumi.Bool(false),
    	TransitGatewayDefaultRouteTablePropagation: pulumi.Bool(false),
    })
    
    var vpcAttachmentResource = new VpcAttachment("vpcAttachmentResource", VpcAttachmentArgs.builder()        
        .subnetIds("string")
        .transitGatewayId("string")
        .vpcId("string")
        .applianceModeSupport("string")
        .dnsSupport("string")
        .ipv6Support("string")
        .tags(Map.of("string", "string"))
        .transitGatewayDefaultRouteTableAssociation(false)
        .transitGatewayDefaultRouteTablePropagation(false)
        .build());
    
    vpc_attachment_resource = aws.ec2transitgateway.VpcAttachment("vpcAttachmentResource",
        subnet_ids=["string"],
        transit_gateway_id="string",
        vpc_id="string",
        appliance_mode_support="string",
        dns_support="string",
        ipv6_support="string",
        tags={
            "string": "string",
        },
        transit_gateway_default_route_table_association=False,
        transit_gateway_default_route_table_propagation=False)
    
    const vpcAttachmentResource = new aws.ec2transitgateway.VpcAttachment("vpcAttachmentResource", {
        subnetIds: ["string"],
        transitGatewayId: "string",
        vpcId: "string",
        applianceModeSupport: "string",
        dnsSupport: "string",
        ipv6Support: "string",
        tags: {
            string: "string",
        },
        transitGatewayDefaultRouteTableAssociation: false,
        transitGatewayDefaultRouteTablePropagation: false,
    });
    
    type: aws:ec2transitgateway:VpcAttachment
    properties:
        applianceModeSupport: string
        dnsSupport: string
        ipv6Support: string
        subnetIds:
            - string
        tags:
            string: string
        transitGatewayDefaultRouteTableAssociation: false
        transitGatewayDefaultRouteTablePropagation: false
        transitGatewayId: string
        vpcId: string
    

    VpcAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VpcAttachment resource accepts the following input properties:

    SubnetIds List<string>
    Identifiers of EC2 Subnets.
    TransitGatewayId string
    Identifier of EC2 Transit Gateway.
    VpcId string
    Identifier of EC2 VPC.
    ApplianceModeSupport string
    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.
    DnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    Ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TransitGatewayDefaultRouteTableAssociation bool
    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.
    TransitGatewayDefaultRouteTablePropagation bool
    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.
    SubnetIds []string
    Identifiers of EC2 Subnets.
    TransitGatewayId string
    Identifier of EC2 Transit Gateway.
    VpcId string
    Identifier of EC2 VPC.
    ApplianceModeSupport string
    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.
    DnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    Ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TransitGatewayDefaultRouteTableAssociation bool
    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.
    TransitGatewayDefaultRouteTablePropagation bool
    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.
    subnetIds List<String>
    Identifiers of EC2 Subnets.
    transitGatewayId String
    Identifier of EC2 Transit Gateway.
    vpcId String
    Identifier of EC2 VPC.
    applianceModeSupport String
    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.
    dnsSupport String
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support String
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayDefaultRouteTableAssociation Boolean
    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.
    transitGatewayDefaultRouteTablePropagation Boolean
    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.
    subnetIds string[]
    Identifiers of EC2 Subnets.
    transitGatewayId string
    Identifier of EC2 Transit Gateway.
    vpcId string
    Identifier of EC2 VPC.
    applianceModeSupport string
    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.
    dnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayDefaultRouteTableAssociation boolean
    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.
    transitGatewayDefaultRouteTablePropagation boolean
    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.
    subnet_ids Sequence[str]
    Identifiers of EC2 Subnets.
    transit_gateway_id str
    Identifier of EC2 Transit Gateway.
    vpc_id str
    Identifier of EC2 VPC.
    appliance_mode_support str
    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.
    dns_support str
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6_support str
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transit_gateway_default_route_table_association bool
    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.
    transit_gateway_default_route_table_propagation bool
    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.
    subnetIds List<String>
    Identifiers of EC2 Subnets.
    transitGatewayId String
    Identifier of EC2 Transit Gateway.
    vpcId String
    Identifier of EC2 VPC.
    applianceModeSupport String
    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.
    dnsSupport String
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support String
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    transitGatewayDefaultRouteTableAssociation Boolean
    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.
    transitGatewayDefaultRouteTablePropagation Boolean
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcAttachment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    VpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    VpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcOwnerId String
    Identifier of the AWS account that owns the EC2 VPC.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpc_owner_id str
    Identifier of the AWS account that owns the EC2 VPC.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    vpcOwnerId String
    Identifier of the AWS account that owns the EC2 VPC.

    Look up Existing VpcAttachment Resource

    Get an existing VpcAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpcAttachmentState, opts?: CustomResourceOptions): VpcAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appliance_mode_support: Optional[str] = None,
            dns_support: Optional[str] = None,
            ipv6_support: Optional[str] = None,
            subnet_ids: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            transit_gateway_default_route_table_association: Optional[bool] = None,
            transit_gateway_default_route_table_propagation: Optional[bool] = None,
            transit_gateway_id: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_owner_id: Optional[str] = None) -> VpcAttachment
    func GetVpcAttachment(ctx *Context, name string, id IDInput, state *VpcAttachmentState, opts ...ResourceOption) (*VpcAttachment, error)
    public static VpcAttachment Get(string name, Input<string> id, VpcAttachmentState? state, CustomResourceOptions? opts = null)
    public static VpcAttachment get(String name, Output<String> id, VpcAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplianceModeSupport string
    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.
    DnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    Ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    SubnetIds List<string>
    Identifiers of EC2 Subnets.
    Tags Dictionary<string, string>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayDefaultRouteTableAssociation bool
    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.
    TransitGatewayDefaultRouteTablePropagation bool
    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.
    TransitGatewayId string
    Identifier of EC2 Transit Gateway.
    VpcId string
    Identifier of EC2 VPC.
    VpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    ApplianceModeSupport string
    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.
    DnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    Ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    SubnetIds []string
    Identifiers of EC2 Subnets.
    Tags map[string]string
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    TransitGatewayDefaultRouteTableAssociation bool
    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.
    TransitGatewayDefaultRouteTablePropagation bool
    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.
    TransitGatewayId string
    Identifier of EC2 Transit Gateway.
    VpcId string
    Identifier of EC2 VPC.
    VpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    applianceModeSupport String
    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.
    dnsSupport String
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support String
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    subnetIds List<String>
    Identifiers of EC2 Subnets.
    tags Map<String,String>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayDefaultRouteTableAssociation Boolean
    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.
    transitGatewayDefaultRouteTablePropagation Boolean
    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.
    transitGatewayId String
    Identifier of EC2 Transit Gateway.
    vpcId String
    Identifier of EC2 VPC.
    vpcOwnerId String
    Identifier of the AWS account that owns the EC2 VPC.
    applianceModeSupport string
    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.
    dnsSupport string
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support string
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    subnetIds string[]
    Identifiers of EC2 Subnets.
    tags {[key: string]: string}
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayDefaultRouteTableAssociation boolean
    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.
    transitGatewayDefaultRouteTablePropagation boolean
    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.
    transitGatewayId string
    Identifier of EC2 Transit Gateway.
    vpcId string
    Identifier of EC2 VPC.
    vpcOwnerId string
    Identifier of the AWS account that owns the EC2 VPC.
    appliance_mode_support str
    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.
    dns_support str
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6_support str
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    subnet_ids Sequence[str]
    Identifiers of EC2 Subnets.
    tags Mapping[str, str]
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transit_gateway_default_route_table_association bool
    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.
    transit_gateway_default_route_table_propagation bool
    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.
    transit_gateway_id str
    Identifier of EC2 Transit Gateway.
    vpc_id str
    Identifier of EC2 VPC.
    vpc_owner_id str
    Identifier of the AWS account that owns the EC2 VPC.
    applianceModeSupport String
    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.
    dnsSupport String
    Whether DNS support is enabled. Valid values: disable, enable. Default value: enable.
    ipv6Support String
    Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
    subnetIds List<String>
    Identifiers of EC2 Subnets.
    tags Map<String>
    Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    transitGatewayDefaultRouteTableAssociation Boolean
    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.
    transitGatewayDefaultRouteTablePropagation Boolean
    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.
    transitGatewayId String
    Identifier of EC2 Transit Gateway.
    vpcId String
    Identifier of EC2 VPC.
    vpcOwnerId String
    Identifier of the AWS account that owns the EC2 VPC.

    Import

    Using pulumi import, import aws_ec2_transit_gateway_vpc_attachment using the EC2 Transit Gateway Attachment identifier. For example:

    $ pulumi import aws:ec2transitgateway/vpcAttachment:VpcAttachment example tgw-attach-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi