Cloud AWS level 2 - Task 20

  1. I created what exactly was told.
  2. created public subnet and a route table and assigned it to the public subnet under the same private vpc.
  3. and now in the main route table which is used by private subnet , there I added this 0.0.0.0/0 destination to target NAT gateway so that packets from private subnets can go to internet via NAT gateway inside public subnet.

for verification , they have told to check the file will come in s3 bucket.
That also verified. File actually came to the bucket. It really proves that private ec2 is able to talk to internet through public subnet using NAT gateway.

But still after all this, Task is getting failed giving the following error: -

Please respond someone if anyone got the same error OR this task itself has the issue ?

I think the task needs to be reworded slightly. To get this to work,

  • Create a routing table “RANDOM-priv-rt”, where RANDOM is the string used in your task.
  • Attach this RT to the private subnet.
  • Add a route to the new RT that sends “0.0.0.0/0” to the NAT gateway you create in the task.

This worked for me.