AWS::EC2::RouteTableSpecifies a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet. For more information, see [Route tables](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the *Amazon VPC User Guide*.
2 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
VpcId | string | RequiredCreate-only |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
RouteTableId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::RouteTable
Resources:
MyResource:
Type: AWS::EC2::RouteTable
Properties:
VpcId: "my-vpcid"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeRouteTablesec2:CreateRouteTableec2:CreateTagsec2:DescribeRouteTablesec2:CreateTagsec2:DeleteTagsec2:DescribeRouteTablesec2:DescribeRouteTablesec2:DescribeRouteTablesec2:DeleteRouteTableEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicRouteTableIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
VpcId