1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. ec2
  6. LocalGatewayRouteTableVirtualInterfaceGroupAssociation
Viewing docs for AWS v7.33.0
published on Monday, Jun 15, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.33.0
published on Monday, Jun 15, 2026 by Pulumi

    Manages an EC2 Local Gateway Route Table Virtual Interface Group Association. More information can be found in the Outposts User Guide.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.ec2.getLocalGatewayRouteTable({
        outpostArn: "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
    });
    const exampleGetLocalGatewayVirtualInterfaceGroup = example.then(example => aws.ec2.getLocalGatewayVirtualInterfaceGroup({
        localGatewayId: example.localGatewayId,
    }));
    const exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example", {
        localGatewayRouteTableId: example.then(example => example.id),
        localGatewayVirtualInterfaceGroupId: exampleGetLocalGatewayVirtualInterfaceGroup.then(exampleGetLocalGatewayVirtualInterfaceGroup => exampleGetLocalGatewayVirtualInterfaceGroup.id),
        tags: {
            Name: "example",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.get_local_gateway_route_table(outpost_arn="arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
    example_get_local_gateway_virtual_interface_group = aws.ec2.get_local_gateway_virtual_interface_group(local_gateway_id=example.local_gateway_id)
    example_local_gateway_route_table_virtual_interface_group_association = aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example",
        local_gateway_route_table_id=example.id,
        local_gateway_virtual_interface_group_id=example_get_local_gateway_virtual_interface_group.id,
        tags={
            "Name": "example",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ec2.LookupLocalGatewayRouteTable(ctx, &ec2.LookupLocalGatewayRouteTableArgs{
    			OutpostArn: pulumi.StringRef("arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleGetLocalGatewayVirtualInterfaceGroup, err := ec2.GetLocalGatewayVirtualInterfaceGroup(ctx, &ec2.GetLocalGatewayVirtualInterfaceGroupArgs{
    			LocalGatewayId: pulumi.StringRef(example.LocalGatewayId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx, "example", &ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs{
    			LocalGatewayRouteTableId:            pulumi.String(pulumi.String(example.Id)),
    			LocalGatewayVirtualInterfaceGroupId: pulumi.String(pulumi.String(exampleGetLocalGatewayVirtualInterfaceGroup.Id)),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example"),
    			},
    		})
    		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 = Aws.Ec2.GetLocalGatewayRouteTable.Invoke(new()
        {
            OutpostArn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
        });
    
        var exampleGetLocalGatewayVirtualInterfaceGroup = Aws.Ec2.GetLocalGatewayVirtualInterfaceGroup.Invoke(new()
        {
            LocalGatewayId = example.Apply(getLocalGatewayRouteTableResult => getLocalGatewayRouteTableResult.LocalGatewayId),
        });
    
        var exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new Aws.Ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("example", new()
        {
            LocalGatewayRouteTableId = example.Apply(getLocalGatewayRouteTableResult => getLocalGatewayRouteTableResult.Id),
            LocalGatewayVirtualInterfaceGroupId = exampleGetLocalGatewayVirtualInterfaceGroup.Apply(getLocalGatewayVirtualInterfaceGroupResult => getLocalGatewayVirtualInterfaceGroupResult.Id),
            Tags = 
            {
                { "Name", "example" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.Ec2Functions;
    import com.pulumi.aws.ec2.inputs.GetLocalGatewayRouteTableArgs;
    import com.pulumi.aws.ec2.inputs.GetLocalGatewayVirtualInterfaceGroupArgs;
    import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation;
    import com.pulumi.aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var example = Ec2Functions.getLocalGatewayRouteTable(GetLocalGatewayRouteTableArgs.builder()
                .outpostArn("arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
                .build());
    
            final var exampleGetLocalGatewayVirtualInterfaceGroup = Ec2Functions.getLocalGatewayVirtualInterfaceGroup(GetLocalGatewayVirtualInterfaceGroupArgs.builder()
                .localGatewayId(example.localGatewayId())
                .build());
    
            var exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation = new LocalGatewayRouteTableVirtualInterfaceGroupAssociation("exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation", LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs.builder()
                .localGatewayRouteTableId(example.id())
                .localGatewayVirtualInterfaceGroupId(exampleGetLocalGatewayVirtualInterfaceGroup.id())
                .tags(Map.of("Name", "example"))
                .build());
    
        }
    }
    
    resources:
      exampleLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
        type: aws:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation
        name: example
        properties:
          localGatewayRouteTableId: ${example.id}
          localGatewayVirtualInterfaceGroupId: ${exampleGetLocalGatewayVirtualInterfaceGroup.id}
          tags:
            Name: example
    variables:
      example:
        fn::invoke:
          function: aws:ec2:getLocalGatewayRouteTable
          arguments:
            outpostArn: arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef
      exampleGetLocalGatewayVirtualInterfaceGroup:
        fn::invoke:
          function: aws:ec2:getLocalGatewayVirtualInterfaceGroup
          arguments:
            localGatewayId: ${example.localGatewayId}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_ec2_getlocalgatewayroutetable" "example" {
      outpost_arn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"
    }
    data "aws_ec2_getlocalgatewayvirtualinterfacegroup" "exampleGetLocalGatewayVirtualInterfaceGroup" {
      local_gateway_id = data.aws_ec2_getlocalgatewayroutetable.example.local_gateway_id
    }
    
    resource "aws_ec2_localgatewayroutetablevirtualinterfacegroupassociation" "example" {
      local_gateway_route_table_id             = data.aws_ec2_getlocalgatewayroutetable.example.id
      local_gateway_virtual_interface_group_id = data.aws_ec2_getlocalgatewayvirtualinterfacegroup.exampleGetLocalGatewayVirtualInterfaceGroup.id
      tags = {
        "Name" = "example"
      }
    }
    

    Create LocalGatewayRouteTableVirtualInterfaceGroupAssociation Resource

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

    Constructor syntax

    new LocalGatewayRouteTableVirtualInterfaceGroupAssociation(name: string, args: LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def LocalGatewayRouteTableVirtualInterfaceGroupAssociation(resource_name: str,
                                                               args: LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs,
                                                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalGatewayRouteTableVirtualInterfaceGroupAssociation(resource_name: str,
                                                               opts: Optional[ResourceOptions] = None,
                                                               local_gateway_route_table_id: Optional[str] = None,
                                                               local_gateway_virtual_interface_group_id: Optional[str] = None,
                                                               region: Optional[str] = None,
                                                               tags: Optional[Mapping[str, str]] = None)
    func NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx *Context, name string, args LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs, opts ...ResourceOption) (*LocalGatewayRouteTableVirtualInterfaceGroupAssociation, error)
    public LocalGatewayRouteTableVirtualInterfaceGroupAssociation(string name, LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs args, CustomResourceOptions? opts = null)
    public LocalGatewayRouteTableVirtualInterfaceGroupAssociation(String name, LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs args)
    public LocalGatewayRouteTableVirtualInterfaceGroupAssociation(String name, LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs args, CustomResourceOptions options)
    
    type: aws:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_ec2_localgatewayroutetablevirtualinterfacegroupassociation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs
    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 LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs
    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 LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var localGatewayRouteTableVirtualInterfaceGroupAssociationResource = new Aws.Ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("localGatewayRouteTableVirtualInterfaceGroupAssociationResource", new()
    {
        LocalGatewayRouteTableId = "string",
        LocalGatewayVirtualInterfaceGroupId = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ec2.NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx, "localGatewayRouteTableVirtualInterfaceGroupAssociationResource", &ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs{
    	LocalGatewayRouteTableId:            pulumi.String("string"),
    	LocalGatewayVirtualInterfaceGroupId: pulumi.String("string"),
    	Region:                              pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_ec2_localgatewayroutetablevirtualinterfacegroupassociation" "localGatewayRouteTableVirtualInterfaceGroupAssociationResource" {
      local_gateway_route_table_id             = "string"
      local_gateway_virtual_interface_group_id = "string"
      region                                   = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var localGatewayRouteTableVirtualInterfaceGroupAssociationResource = new LocalGatewayRouteTableVirtualInterfaceGroupAssociation("localGatewayRouteTableVirtualInterfaceGroupAssociationResource", LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs.builder()
        .localGatewayRouteTableId("string")
        .localGatewayVirtualInterfaceGroupId("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    local_gateway_route_table_virtual_interface_group_association_resource = aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("localGatewayRouteTableVirtualInterfaceGroupAssociationResource",
        local_gateway_route_table_id="string",
        local_gateway_virtual_interface_group_id="string",
        region="string",
        tags={
            "string": "string",
        })
    
    const localGatewayRouteTableVirtualInterfaceGroupAssociationResource = new aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation("localGatewayRouteTableVirtualInterfaceGroupAssociationResource", {
        localGatewayRouteTableId: "string",
        localGatewayVirtualInterfaceGroupId: "string",
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation
    properties:
        localGatewayRouteTableId: string
        localGatewayVirtualInterfaceGroupId: string
        region: string
        tags:
            string: string
    

    LocalGatewayRouteTableVirtualInterfaceGroupAssociation Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LocalGatewayRouteTableVirtualInterfaceGroupAssociation resource accepts the following input properties:

    LocalGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    LocalGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    LocalGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    LocalGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    local_gateway_route_table_id string
    Identifier of EC2 Local Gateway Route Table.
    local_gateway_virtual_interface_group_id string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    localGatewayRouteTableId String
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId String

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    localGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    local_gateway_route_table_id str
    Identifier of EC2 Local Gateway Route Table.
    local_gateway_virtual_interface_group_id str

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    localGatewayRouteTableId String
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId String

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    State string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    OwnerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    State string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id string
    The provider-assigned unique ID for this managed resource.
    local_gateway_id string
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_arn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    owner_id string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    state string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn String
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    ownerId String
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    state String
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id string
    The provider-assigned unique ID for this managed resource.
    localGatewayId string
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    ownerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    state string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id str
    The provider-assigned unique ID for this managed resource.
    local_gateway_id str
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_arn str
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    owner_id str
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    state str
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn String
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    ownerId String
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    state String
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing LocalGatewayRouteTableVirtualInterfaceGroupAssociation Resource

    Get an existing LocalGatewayRouteTableVirtualInterfaceGroupAssociation 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?: LocalGatewayRouteTableVirtualInterfaceGroupAssociationState, opts?: CustomResourceOptions): LocalGatewayRouteTableVirtualInterfaceGroupAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            local_gateway_id: Optional[str] = None,
            local_gateway_route_table_arn: Optional[str] = None,
            local_gateway_route_table_id: Optional[str] = None,
            local_gateway_virtual_interface_group_id: Optional[str] = None,
            owner_id: Optional[str] = None,
            region: Optional[str] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
    func GetLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx *Context, name string, id IDInput, state *LocalGatewayRouteTableVirtualInterfaceGroupAssociationState, opts ...ResourceOption) (*LocalGatewayRouteTableVirtualInterfaceGroupAssociation, error)
    public static LocalGatewayRouteTableVirtualInterfaceGroupAssociation Get(string name, Input<string> id, LocalGatewayRouteTableVirtualInterfaceGroupAssociationState? state, CustomResourceOptions? opts = null)
    public static LocalGatewayRouteTableVirtualInterfaceGroupAssociation get(String name, Output<String> id, LocalGatewayRouteTableVirtualInterfaceGroupAssociationState state, CustomResourceOptions options)
    resources:  _:    type: aws:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation    get:      id: ${id}
    import {
      to = aws_ec2_localgatewayroutetablevirtualinterfacegroupassociation.example
      id = "${id}"
    }
    
    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:
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    LocalGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    LocalGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    OwnerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    State string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    LocalGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    LocalGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    OwnerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    State string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    local_gateway_id string
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_arn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    local_gateway_route_table_id string
    Identifier of EC2 Local Gateway Route Table.
    local_gateway_virtual_interface_group_id string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    owner_id string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags map(string)
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn String
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    localGatewayRouteTableId String
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId String

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    ownerId String
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state String
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    localGatewayId string
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn string
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    localGatewayRouteTableId string
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId string

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    ownerId string
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state string
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    local_gateway_id str
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_arn str
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    local_gateway_route_table_id str
    Identifier of EC2 Local Gateway Route Table.
    local_gateway_virtual_interface_group_id str

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    owner_id str
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state str
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableArn String
    Amazon Resource Name (ARN) of the EC2 Local Gateway Route Table.
    localGatewayRouteTableId String
    Identifier of EC2 Local Gateway Route Table.
    localGatewayVirtualInterfaceGroupId String

    Identifier of EC2 Local Gateway Virtual Interface Group.

    The following arguments are optional:

    ownerId String
    Identifier of the AWS account that owns the EC2 Local Gateway Virtual Interface Group Association.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state String
    State of the EC2 Local Gateway Route Table Virtual Interface Group Association.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Import

    Using pulumi import, import aws.ec2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation using the Local Gateway Route Table Virtual Interface Group Association identifier. For example:

    $ pulumi import aws:ec2/localGatewayRouteTableVirtualInterfaceGroupAssociation:LocalGatewayRouteTableVirtualInterfaceGroupAssociation example lgw-vif-grp-assoc-1234567890abcdef
    

    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
    Viewing docs for AWS v7.33.0
    published on Monday, Jun 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial