aws ec2 create-route
Creates a route in a route table within a VPC. AWS CLI reference
17 options Its page in the AWS CLI reference
Options
--carrier-gateway-idThe ID of the carrier gateway.--core-network-arnThe Amazon Resource Name (ARN) of the core network.--destination-cidr-blockThe IPv4 CIDR address block used for the destination match.--destination-ipv6-cidr-blockThe IPv6 CIDR block used for the destination match.--destination-prefix-list-idThe ID of a prefix list used for the destination match.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--egress-only-internet-gateway-id[IPv6 traffic only] The ID of an egress-only internet gateway.--gateway-idThe ID of an internet gateway or virtual private gateway attached to your VPC.--instance-idThe ID of a NAT instance in your VPC.--local-gateway-idThe ID of the local gateway.--nat-gateway-id[IPv4 traffic only] The ID of a NAT gateway.--network-interface-idThe ID of a network interface.--odb-network-arnThe Amazon Resource Name (ARN) of the ODB network.--route-table-idThe ID of the route table for the route.--transit-gateway-idThe ID of a transit gateway.--vpc-endpoint-idThe ID of a VPC endpoint.--vpc-peering-connection-idThe ID of a VPC peering connection.