CmdID

CmdID / aws / aws ec2

aws ec2 create-local-gateway-route-table-vpc-association

Associates the specified VPC with the specified local gateway route table. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To associate a VPC with a route table

The following create-local-gateway-route-table-vpc-association example associates the specified VPC with the specified local gateway route table.

aws ec2 create-local-gateway-route-table-vpc-association --local-gateway-route-table-id lgw-rtb-059615ef7dEXAMPLE --vpc-id vpc-07ef66ac71EXAMPLEIdentify
--local-gateway-route-table-idThe ID of the local gateway route table.
--vpc-idThe ID of the VPC.
Its output
{
    "LocalGatewayRouteTableVpcAssociation": {
        "LocalGatewayRouteTableVpcAssociationId": "lgw-vpc-assoc-0ee765bcc8EXAMPLE",
        "LocalGatewayRouteTableId": "lgw-rtb-059615ef7dEXAMPLE",
        "LocalGatewayId": "lgw-09b493aa7cEXAMPLE",
        "VpcId": "vpc-07ef66ac71EXAMPLE",
        "State": "associated"
    }
}

For more information, see Local gateway route tables in the AWS Outposts User Guide.

Options

4 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--local-gateway-route-table-idThe ID of the local gateway route table.
--tag-specificationsThe tags to assign to the local gateway route table VPC association.
--vpc-idThe ID of the VPC.