Hi all,
the tasks says:
The Nautilus DevOps team is tasked with enabling internet access for an EC2 instance running in a private subnet. This instance should be able to upload a test file to a public S3 bucket once it can access the internet. To achieve this, the team must set up a NAT Gateway in a public subnet within the same VPC.
- A VPC named
nautilus-priv-vpcand a private subnetnautilus-priv-subnethave already been created.- An EC2 instance named
nautilus-priv-ec2is already running in the private subnet.- The EC2 instance is configured with a cron job that uploads a test file to a bucket
nautilus-nat-1215once internet is accessible.Your task is to:
- Create a public subnet named
nautilus-pub-subnetin the same VPC.- Create an Internet Gateway and attach it to the VPC.
- Create a route table
nautilus-pub-rtand associate it with the public subnet.- Allocate an Elastic IP and create a NAT Gateway named
nautilus-natgw.- Update the private route table to route 0.0.0.0/0 traffic via the NAT Gateway.
Once complete, verify that the EC2 instance can reach the internet by confirming the presence of the test file in the S3 bucket
nautilus-nat-1215. After completing all the configuration, please wait a few minutes for the test file to appear in the bucket, as it may take2–3 minutes.
Lab Feedback
Bucket Creation
On my first and third attempts, the bucket was not created because the chosen name was already taken.
Step‑by‑Step Resolution
I progressed through the lab mainly by addressing validation errors one after another. To make the file available, the following steps were required:
- Create an Internet Gateway and associate it with the VPC
- Create a NAT Gateway
- Add a route to the NAT Gateway
Private route table
There was no dedicated “private” route table; the general routing table for the VPC was sufficient for this task. The lab checked for an explicit association, but the solution worked even without it.
Public Subnet Requirement
The lab instructions required the creation of a public subnet. However, for the actual goal of providing Internet access to an EC2 instance, the public subnet was not necessary. In addition, the instructions did not mention that the public subnet should have a default route to the Internet Gateway, which made the requirement incomplete.