CmdID

CmdID / aws / aws ec2

aws ec2 replace-route-table-association

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. AWS CLI reference

1 example 3 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 replace the route table associated with a subnet

The following replace-route-table-association example associates the specified route table with the subnet for the specified route table association.

aws ec2 replace-route-table-association --association-id rtbassoc-781d0d1a --route-table-id rtb-22574640Identify
--association-idThe association ID.
--route-table-idThe ID of the new route table to associate with the subnet.
Its output
{
    "NewAssociationId": "rtbassoc-3a1f0f58"
}

For more information, see Manage subnet route tables in the Amazon VPC User Guide.

Options

3 in the AWS CLI reference
--association-idThe association ID.
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--route-table-idThe ID of the new route table to associate with the subnet.