1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. ec2
  6. LocalGatewayRouteTable
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. 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.getLocalGateway({
        id: "lgw-1234567890abcdef",
    });
    const exampleLocalGatewayRouteTable = new aws.ec2.LocalGatewayRouteTable("example", {
        localGatewayId: example.then(example => example.id),
        mode: "direct-vpc-routing",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.get_local_gateway(id="lgw-1234567890abcdef")
    example_local_gateway_route_table = aws.ec2.LocalGatewayRouteTable("example",
        local_gateway_id=example.id,
        mode="direct-vpc-routing")
    
    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.GetLocalGateway(ctx, &ec2.GetLocalGatewayArgs{
    			Id: pulumi.StringRef("lgw-1234567890abcdef"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewLocalGatewayRouteTable(ctx, "example", &ec2.LocalGatewayRouteTableArgs{
    			LocalGatewayId: pulumi.String(pulumi.String(example.Id)),
    			Mode:           pulumi.String("direct-vpc-routing"),
    		})
    		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.GetLocalGateway.Invoke(new()
        {
            Id = "lgw-1234567890abcdef",
        });
    
        var exampleLocalGatewayRouteTable = new Aws.Ec2.LocalGatewayRouteTable("example", new()
        {
            LocalGatewayId = example.Apply(getLocalGatewayResult => getLocalGatewayResult.Id),
            Mode = "direct-vpc-routing",
        });
    
    });
    
    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.GetLocalGatewayArgs;
    import com.pulumi.aws.ec2.LocalGatewayRouteTable;
    import com.pulumi.aws.ec2.LocalGatewayRouteTableArgs;
    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.getLocalGateway(GetLocalGatewayArgs.builder()
                .id("lgw-1234567890abcdef")
                .build());
    
            var exampleLocalGatewayRouteTable = new LocalGatewayRouteTable("exampleLocalGatewayRouteTable", LocalGatewayRouteTableArgs.builder()
                .localGatewayId(example.id())
                .mode("direct-vpc-routing")
                .build());
    
        }
    }
    
    resources:
      exampleLocalGatewayRouteTable:
        type: aws:ec2:LocalGatewayRouteTable
        name: example
        properties:
          localGatewayId: ${example.id}
          mode: direct-vpc-routing
    variables:
      example:
        fn::invoke:
          function: aws:ec2:getLocalGateway
          arguments:
            id: lgw-1234567890abcdef
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_ec2_getlocalgateway" "example" {
      id = "lgw-1234567890abcdef"
    }
    
    resource "aws_ec2_localgatewayroutetable" "example" {
      local_gateway_id = data.aws_ec2_getlocalgateway.example.id
      mode             = "direct-vpc-routing"
    }
    

    Create LocalGatewayRouteTable Resource

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

    Constructor syntax

    new LocalGatewayRouteTable(name: string, args: LocalGatewayRouteTableArgs, opts?: CustomResourceOptions);
    @overload
    def LocalGatewayRouteTable(resource_name: str,
                               args: LocalGatewayRouteTableArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def LocalGatewayRouteTable(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               local_gateway_id: Optional[str] = None,
                               mode: Optional[str] = None,
                               region: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None,
                               timeouts: Optional[LocalGatewayRouteTableTimeoutsArgs] = None)
    func NewLocalGatewayRouteTable(ctx *Context, name string, args LocalGatewayRouteTableArgs, opts ...ResourceOption) (*LocalGatewayRouteTable, error)
    public LocalGatewayRouteTable(string name, LocalGatewayRouteTableArgs args, CustomResourceOptions? opts = null)
    public LocalGatewayRouteTable(String name, LocalGatewayRouteTableArgs args)
    public LocalGatewayRouteTable(String name, LocalGatewayRouteTableArgs args, CustomResourceOptions options)
    
    type: aws:ec2:LocalGatewayRouteTable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_ec2_localgatewayroutetable" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LocalGatewayRouteTableArgs
    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 LocalGatewayRouteTableArgs
    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 LocalGatewayRouteTableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LocalGatewayRouteTableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LocalGatewayRouteTableArgs
    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 localGatewayRouteTableResource = new Aws.Ec2.LocalGatewayRouteTable("localGatewayRouteTableResource", new()
    {
        LocalGatewayId = "string",
        Mode = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Ec2.Inputs.LocalGatewayRouteTableTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := ec2.NewLocalGatewayRouteTable(ctx, "localGatewayRouteTableResource", &ec2.LocalGatewayRouteTableArgs{
    	LocalGatewayId: pulumi.String("string"),
    	Mode:           pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &ec2.LocalGatewayRouteTableTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    resource "aws_ec2_localgatewayroutetable" "localGatewayRouteTableResource" {
      local_gateway_id = "string"
      mode             = "string"
      region           = "string"
      tags = {
        "string" = "string"
      }
      timeouts = {
        create = "string"
        delete = "string"
      }
    }
    
    var localGatewayRouteTableResource = new LocalGatewayRouteTable("localGatewayRouteTableResource", LocalGatewayRouteTableArgs.builder()
        .localGatewayId("string")
        .mode("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(LocalGatewayRouteTableTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    local_gateway_route_table_resource = aws.ec2.LocalGatewayRouteTable("localGatewayRouteTableResource",
        local_gateway_id="string",
        mode="string",
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const localGatewayRouteTableResource = new aws.ec2.LocalGatewayRouteTable("localGatewayRouteTableResource", {
        localGatewayId: "string",
        mode: "string",
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: aws:ec2:LocalGatewayRouteTable
    properties:
        localGatewayId: string
        mode: string
        region: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
    

    LocalGatewayRouteTable 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 LocalGatewayRouteTable resource accepts the following input properties:

    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    Mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    Timeouts LocalGatewayRouteTableTimeouts
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    Mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    Timeouts LocalGatewayRouteTableTimeoutsArgs
    local_gateway_id string
    Identifier of the EC2 Local Gateway.
    mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    timeouts object
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    mode String

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    timeouts LocalGatewayRouteTableTimeouts
    localGatewayId string
    Identifier of the EC2 Local Gateway.
    mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    timeouts LocalGatewayRouteTableTimeouts
    local_gateway_id str
    Identifier of the EC2 Local Gateway.
    mode str

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    timeouts LocalGatewayRouteTableTimeoutsArgs
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    mode String

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    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.
    timeouts Property Map

    Outputs

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

    Arn string
    ARN of the Local Gateway Route Table.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    OutpostArn string
    ARN of the Outpost.
    OwnerId string
    AWS account identifier that owns the Local Gateway Route Table.
    State string
    State of the Local Gateway Route Table.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the Local Gateway Route Table.
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    OutpostArn string
    ARN of the Outpost.
    OwnerId string
    AWS account identifier that owns the Local Gateway Route Table.
    State string
    State of the Local Gateway Route Table.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Local Gateway Route Table.
    id string
    The provider-assigned unique ID for this managed resource.
    local_gateway_route_table_id string
    Identifier of the Local Gateway Route Table.
    outpost_arn string
    ARN of the Outpost.
    owner_id string
    AWS account identifier that owns the Local Gateway Route Table.
    state string
    State of the Local Gateway Route Table.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Local Gateway Route Table.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayRouteTableId String
    Identifier of the Local Gateway Route Table.
    outpostArn String
    ARN of the Outpost.
    ownerId String
    AWS account identifier that owns the Local Gateway Route Table.
    state String
    State of the Local Gateway Route Table.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the Local Gateway Route Table.
    id string
    The provider-assigned unique ID for this managed resource.
    localGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    outpostArn string
    ARN of the Outpost.
    ownerId string
    AWS account identifier that owns the Local Gateway Route Table.
    state string
    State of the Local Gateway Route Table.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the Local Gateway Route Table.
    id str
    The provider-assigned unique ID for this managed resource.
    local_gateway_route_table_id str
    Identifier of the Local Gateway Route Table.
    outpost_arn str
    ARN of the Outpost.
    owner_id str
    AWS account identifier that owns the Local Gateway Route Table.
    state str
    State of the Local Gateway Route Table.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the Local Gateway Route Table.
    id String
    The provider-assigned unique ID for this managed resource.
    localGatewayRouteTableId String
    Identifier of the Local Gateway Route Table.
    outpostArn String
    ARN of the Outpost.
    ownerId String
    AWS account identifier that owns the Local Gateway Route Table.
    state String
    State of the Local Gateway Route Table.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing LocalGatewayRouteTable Resource

    Get an existing LocalGatewayRouteTable 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?: LocalGatewayRouteTableState, opts?: CustomResourceOptions): LocalGatewayRouteTable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            local_gateway_id: Optional[str] = None,
            local_gateway_route_table_id: Optional[str] = None,
            mode: Optional[str] = None,
            outpost_arn: 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,
            timeouts: Optional[LocalGatewayRouteTableTimeoutsArgs] = None) -> LocalGatewayRouteTable
    func GetLocalGatewayRouteTable(ctx *Context, name string, id IDInput, state *LocalGatewayRouteTableState, opts ...ResourceOption) (*LocalGatewayRouteTable, error)
    public static LocalGatewayRouteTable Get(string name, Input<string> id, LocalGatewayRouteTableState? state, CustomResourceOptions? opts = null)
    public static LocalGatewayRouteTable get(String name, Output<String> id, LocalGatewayRouteTableState state, CustomResourceOptions options)
    resources:  _:    type: aws:ec2:LocalGatewayRouteTable    get:      id: ${id}
    import {
      to = aws_ec2_localgatewayroutetable.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:
    Arn string
    ARN of the Local Gateway Route Table.
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    Mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    OutpostArn string
    ARN of the Outpost.
    OwnerId string
    AWS account identifier that owns the Local Gateway Route Table.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    State string
    State of the Local Gateway Route Table.
    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.
    Timeouts LocalGatewayRouteTableTimeouts
    Arn string
    ARN of the Local Gateway Route Table.
    LocalGatewayId string
    Identifier of the EC2 Local Gateway.
    LocalGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    Mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    OutpostArn string
    ARN of the Outpost.
    OwnerId string
    AWS account identifier that owns the Local Gateway Route Table.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    State string
    State of the Local Gateway Route Table.
    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.
    Timeouts LocalGatewayRouteTableTimeoutsArgs
    arn string
    ARN of the Local Gateway Route Table.
    local_gateway_id string
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_id string
    Identifier of the Local Gateway Route Table.
    mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    outpost_arn string
    ARN of the Outpost.
    owner_id string
    AWS account identifier that owns the Local Gateway Route Table.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state string
    State of the Local Gateway Route Table.
    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.
    timeouts object
    arn String
    ARN of the Local Gateway Route Table.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableId String
    Identifier of the Local Gateway Route Table.
    mode String

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    outpostArn String
    ARN of the Outpost.
    ownerId String
    AWS account identifier that owns the Local Gateway Route Table.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state String
    State of the Local Gateway Route Table.
    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.
    timeouts LocalGatewayRouteTableTimeouts
    arn string
    ARN of the Local Gateway Route Table.
    localGatewayId string
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableId string
    Identifier of the Local Gateway Route Table.
    mode string

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    outpostArn string
    ARN of the Outpost.
    ownerId string
    AWS account identifier that owns the Local Gateway Route Table.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state string
    State of the Local Gateway Route Table.
    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.
    timeouts LocalGatewayRouteTableTimeouts
    arn str
    ARN of the Local Gateway Route Table.
    local_gateway_id str
    Identifier of the EC2 Local Gateway.
    local_gateway_route_table_id str
    Identifier of the Local Gateway Route Table.
    mode str

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    outpost_arn str
    ARN of the Outpost.
    owner_id str
    AWS account identifier that owns the Local Gateway Route Table.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state str
    State of the Local Gateway Route Table.
    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.
    timeouts LocalGatewayRouteTableTimeoutsArgs
    arn String
    ARN of the Local Gateway Route Table.
    localGatewayId String
    Identifier of the EC2 Local Gateway.
    localGatewayRouteTableId String
    Identifier of the Local Gateway Route Table.
    mode String

    Mode of the Local Gateway Route Table. Valid values: direct-vpc-routing, coip.

    The following arguments are optional:

    outpostArn String
    ARN of the Outpost.
    ownerId String
    AWS account identifier that owns the Local Gateway Route Table.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    state String
    State of the Local Gateway Route Table.
    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.
    timeouts Property Map

    Supporting Types

    LocalGatewayRouteTableTimeouts, LocalGatewayRouteTableTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

    Import

    Using pulumi import, import aws.ec2.LocalGatewayRouteTable using the Local Gateway Route Table identifier. For example:

    $ pulumi import aws:ec2/localGatewayRouteTable:LocalGatewayRouteTable example lgw-rtb-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