Association of a Public Route Table to a Public Subnet

Now that we have created a Route Table and a Default Route, let's associate it with the public subnet. The following code block shows us how:

    letsPollPublicSubnet1RouteTableAssociation:      Type: AWS::EC2::SubnetRouteTableAssociation      Properties:        RouteTableId:          Ref: letsPollVPCPublicRouteTable        SubnetId:          Ref: letsPollPublicSubnet

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.