Resource: awsEc2LocalGatewayRouteTableVpcAssociation
Manages an EC2 Local Gateway Route Table VPC Association. More information can be found in the Outposts User Guide.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsVpcExample = new aws.vpc.Vpc(this, "example", {
cidrBlock: "10.0.0.0/16",
});
const dataAwsEc2LocalGatewayRouteTableExample =
new aws.dataAwsEc2LocalGatewayRouteTable.DataAwsEc2LocalGatewayRouteTable(
this,
"example_1",
{
outpostArn:
"arn:aws:outposts:us-west-2:123456789012:outpost/op-1234567890abcdef",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAwsEc2LocalGatewayRouteTableExample.overrideLogicalId("example");
const awsEc2LocalGatewayRouteTableVpcAssociationExample =
new aws.ec2LocalGatewayRouteTableVpcAssociation.Ec2LocalGatewayRouteTableVpcAssociation(
this,
"example_2",
{
localGatewayRouteTableId: dataAwsEc2LocalGatewayRouteTableExample.id,
vpcId: awsVpcExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsEc2LocalGatewayRouteTableVpcAssociationExample.overrideLogicalId("example");
Argument Reference
The following arguments are required:
localGatewayRouteTableId
- (Required) Identifier of EC2 Local Gateway Route Table.vpcId
- (Required) Identifier of EC2 VPC.
The following arguments are optional:
tags
- (Optional) Key-value map of resource tags. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- Identifier of EC2 Local Gateway Route Table VPC Association.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
awsEc2LocalGatewayRouteTableVpcAssociation
can be imported by using the Local Gateway Route Table VPC Association identifier, e.g.,