LocalGatewayRouteTableVpcAssociation

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

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleLocalGatewayRouteTable = Output.Create(Aws.Ec2.GetLocalGatewayRouteTable.InvokeAsync(new Aws.Ec2.GetLocalGatewayRouteTableArgs
        {
            OutpostArn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
        }));
        var exampleVpc = new Aws.Ec2.Vpc("exampleVpc", new Aws.Ec2.VpcArgs
        {
            CidrBlock = "10.0.0.0/16",
        });
        var exampleLocalGatewayRouteTableVpcAssociation = new Aws.Ec2.LocalGatewayRouteTableVpcAssociation("exampleLocalGatewayRouteTableVpcAssociation", new Aws.Ec2.LocalGatewayRouteTableVpcAssociationArgs
        {
            LocalGatewayRouteTableId = exampleLocalGatewayRouteTable.Apply(exampleLocalGatewayRouteTable => exampleLocalGatewayRouteTable.Id),
            VpcId = exampleVpc.Id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"
        exampleLocalGatewayRouteTable, err := ec2.GetLocalGatewayRouteTable(ctx, &ec2.GetLocalGatewayRouteTableArgs{
            OutpostArn: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        exampleVpc, err := ec2.NewVpc(ctx, "exampleVpc", &ec2.VpcArgs{
            CidrBlock: pulumi.String("10.0.0.0/16"),
        })
        if err != nil {
            return err
        }
        _, err = ec2.NewLocalGatewayRouteTableVpcAssociation(ctx, "exampleLocalGatewayRouteTableVpcAssociation", &ec2.LocalGatewayRouteTableVpcAssociationArgs{
            LocalGatewayRouteTableId: pulumi.String(exampleLocalGatewayRouteTable.Id),
            VpcId:                    exampleVpc.ID(),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example_local_gateway_route_table = aws.ec2.get_local_gateway_route_table(outpost_arn="arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef")
example_vpc = aws.ec2.Vpc("exampleVpc", cidr_block="10.0.0.0/16")
example_local_gateway_route_table_vpc_association = aws.ec2.LocalGatewayRouteTableVpcAssociation("exampleLocalGatewayRouteTableVpcAssociation",
    local_gateway_route_table_id=example_local_gateway_route_table.id,
    vpc_id=example_vpc.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleLocalGatewayRouteTable = aws.ec2.getLocalGatewayRouteTable({
    outpostArn: "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
});
const exampleVpc = new aws.ec2.Vpc("exampleVpc", {cidrBlock: "10.0.0.0/16"});
const exampleLocalGatewayRouteTableVpcAssociation = new aws.ec2.LocalGatewayRouteTableVpcAssociation("exampleLocalGatewayRouteTableVpcAssociation", {
    localGatewayRouteTableId: exampleLocalGatewayRouteTable.then(exampleLocalGatewayRouteTable => exampleLocalGatewayRouteTable.id),
    vpcId: exampleVpc.id,
});

Create a LocalGatewayRouteTableVpcAssociation Resource

def LocalGatewayRouteTableVpcAssociation(resource_name, opts=None, local_gateway_route_table_id=None, tags=None, vpc_id=None, __props__=None);
name string
The unique name of the resource.
args LocalGatewayRouteTableVpcAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LocalGatewayRouteTableVpcAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LocalGatewayRouteTableVpcAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

LocalGatewayRouteTableVpcAssociation Resource Properties

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

Inputs

The LocalGatewayRouteTableVpcAssociation resource accepts the following input properties:

LocalGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

VpcId string

Identifier of EC2 VPC.

Tags Dictionary<string, string>

Key-value map of resource tags.

LocalGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

VpcId string

Identifier of EC2 VPC.

Tags map[string]string

Key-value map of resource tags.

localGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

vpcId string

Identifier of EC2 VPC.

tags {[key: string]: string}

Key-value map of resource tags.

local_gateway_route_table_id str

Identifier of EC2 Local Gateway Route Table.

vpc_id str

Identifier of EC2 VPC.

tags Dict[str, str]

Key-value map of resource tags.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
LocalGatewayId string
Id string
The provider-assigned unique ID for this managed resource.
LocalGatewayId string
id string
The provider-assigned unique ID for this managed resource.
localGatewayId string
id str
The provider-assigned unique ID for this managed resource.
local_gateway_id str

Look up an Existing LocalGatewayRouteTableVpcAssociation Resource

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

static get(resource_name, id, opts=None, local_gateway_id=None, local_gateway_route_table_id=None, tags=None, vpc_id=None, __props__=None);
func GetLocalGatewayRouteTableVpcAssociation(ctx *Context, name string, id IDInput, state *LocalGatewayRouteTableVpcAssociationState, opts ...ResourceOption) (*LocalGatewayRouteTableVpcAssociation, error)
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.

The following state arguments are supported:

LocalGatewayId string
LocalGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

Tags Dictionary<string, string>

Key-value map of resource tags.

VpcId string

Identifier of EC2 VPC.

LocalGatewayId string
LocalGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

Tags map[string]string

Key-value map of resource tags.

VpcId string

Identifier of EC2 VPC.

localGatewayId string
localGatewayRouteTableId string

Identifier of EC2 Local Gateway Route Table.

tags {[key: string]: string}

Key-value map of resource tags.

vpcId string

Identifier of EC2 VPC.

local_gateway_id str
local_gateway_route_table_id str

Identifier of EC2 Local Gateway Route Table.

tags Dict[str, str]

Key-value map of resource tags.

vpc_id str

Identifier of EC2 VPC.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.