AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::RouteTable

EC2 RouteTable

Specifies 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*.

Properties

2 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
VpcId
string
RequiredCreate-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
RouteTableIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
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: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ec2:DescribeRouteTables

create

ec2:CreateRouteTableec2:CreateTagsec2:DescribeRouteTables

update

ec2:CreateTagsec2:DeleteTagsec2:DescribeRouteTables

list

ec2:DescribeRouteTables

delete

ec2:DescribeRouteTablesec2:DeleteRouteTable

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties3
Required1
TaggingSupported
Primary IDRouteTableId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

VpcId

External Links