---
type: resource-type
title: SubnetRouteTableAssociation
description: aws resource type AWS::EC2::SubnetRouteTableAssociation
name: SubnetRouteTableAssociation
lexicon: aws
resource_type: AWS::EC2::SubnetRouteTableAssociation
---
`AWS::EC2::SubnetRouteTableAssociation`, a resource type of the aws lexicon.

## Properties

- `RouteTableId` (`string`, required): The ID of the route table. The physical ID changes when the route table ID is changed.
- `SubnetId` (`string`, required): The ID of the subnet.
- `Id` (`string`, optional)

## Attributes

- `Id`

## Governed by

- [WAW066](/rules/WAW066.md): Private subnet's route table has no default route, or its default route targets a gateway that does not exist in the template
- [WAW067](/rules/WAW067.md): A single-AZ NAT gateway serves private subnets across multiple Availability Zones — single point of failure for cross-AZ egress
