» Resource: aws_ec2_local_gateway_route_table_vpc_association

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

» Example Usage

data "aws_ec2_local_gateway_route_table" "example" {
  outpost_arn = "arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef"

resource "aws_vpc" "example" {
  cidr_block = ""

resource "aws_ec2_local_gateway_route_table_vpc_association" "example" {
  local_gateway_route_table_id = data.aws_ec2_local_gateway_route_table.example.id
  vpc_id                       = aws_vpc.example.id

» Argument Reference

The following arguments are required:

The following arguments are optional:

  • tags - (Optional) Key-value map of resource tags.

» Attribute Reference

In addition to all arguments above, the following attributes are exported:

  • id - Identifier of EC2 Local Gateway Route Table VPC Association.

» Import

aws_ec2_local_gateway_route_table_vpc_association can be imported by using the Local Gateway Route Table VPC Association identifier, e.g.

$ terraform import aws_ec2_local_gateway_route_table_vpc_association.example lgw-vpc-assoc-1234567890abcdef