AWS::EC2::GatewayRouteTableAssociationAssociates a gateway with a route table. The gateway and route table must be in the same VPC. This association causes the incoming traffic to the gateway to be routed according to the routes in the route table.
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
GatewayId | string | RequiredCreate-only |
RouteTableId | string | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AssociationId | string | The route table association ID. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::GatewayRouteTableAssociation
Resources:
MyResource:
Type: AWS::EC2::GatewayRouteTableAssociation
Properties:
RouteTableId: "my-routetableid"
GatewayId: "my-gatewayid"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeRouteTablesec2:AssociateRouteTableec2:DescribeRouteTablesec2:DescribeRouteTablesec2:ReplaceRouteTableAssociationec2:DescribeRouteTablesec2:DisassociateRouteTableEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicGatewayIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
GatewayId