0
0
AWScloud~30 mins

Route tables configuration in AWS - Mini Project: Build & Apply

Choose your learning style9 modes available
Route tables configuration
📖 Scenario: You are setting up a simple network in AWS. You need to create a route table for a Virtual Private Cloud (VPC) and add routes to direct traffic properly.
🎯 Goal: Build an AWS route table configuration with a route to the internet gateway and associate it with a subnet.
📋 What You'll Learn
Create a route table resource named MyRouteTable in the VPC with ID vpc-123abc.
Add a route to 0.0.0.0/0 that points to the internet gateway with ID igw-456def.
Associate the route table with the subnet having ID subnet-789ghi.
💡 Why This Matters
🌍 Real World
Route tables control how network traffic flows inside a cloud network. Setting them up correctly is essential for internet access and secure communication.
💼 Career
Cloud engineers and architects regularly configure route tables to manage network traffic and ensure resources can communicate as intended.
Progress0 / 4 steps
1
Create the route table resource
Create a resource called MyRouteTable of type AWS::EC2::RouteTable with the property VpcId set to vpc-123abc.
AWS
Need a hint?

Use the Resources section and specify Type and Properties correctly.

2
Add a route to the internet gateway
Add a resource called MyRoute of type AWS::EC2::Route with properties: RouteTableId set to !Ref MyRouteTable, DestinationCidrBlock set to 0.0.0.0/0, and GatewayId set to igw-456def.
AWS
Need a hint?

Use !Ref MyRouteTable to link the route to the route table.

3
Associate the route table with a subnet
Add a resource called MySubnetRouteTableAssociation of type AWS::EC2::SubnetRouteTableAssociation with properties: SubnetId set to subnet-789ghi and RouteTableId set to !Ref MyRouteTable.
AWS
Need a hint?

Use the association resource to link the subnet and route table.

4
Complete the CloudFormation template
Add the top-level AWSTemplateFormatVersion set to 2010-09-09 and Description with the text Simple route table setup at the beginning of the template.
AWS
Need a hint?

These top-level fields help AWS understand your template version and purpose.