

# no-unrestricted-route-to-igw
<a name="no-unrestricted-route-to-igw"></a>

Checks if there are public routes in the route table to an Internet gateway (IGW). The rule is NON\$1COMPLIANT if a route to an IGW has a destination CIDR block of '0.0.0.0/0' or '::/0' or if a destination CIDR block does not match the rule parameter. 



**Identifier:** NO\$1UNRESTRICTED\$1ROUTE\$1TO\$1IGW

**Resource Types:** AWS::EC2::RouteTable

**Trigger type:** Configuration changes and Periodic

**Amazon Web Services Region:** All supported Amazon regions

**Parameters:**

routeTableIds (Optional)Type: CSV  
Comma-separated list of route table IDs that can have routes to an Internet Gateway with a destination CIDR block of '0.0.0.0/0' or '::/0'.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7e1181c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).