Sign inSign up free

1109. The Public Subnet That Isn't

medium 20 XP ~15 minHands-on lab

The VPC promo-api-vpc has two subnets: promo-api-lb, which must be public, and promo-api-db, which must stay private. There's an internet gateway promo-api-igw and a route table promo-api-public-rt that someone set up for the public subnet. Instances launched in promo-api-lb get no public address, and nothing there can be reached from the internet.

Task

  • promo-api-igw is attached to promo-api-vpc.
  • promo-api-lb sends internet traffic (0.0.0.0/0) to promo-api-igw.
  • Instances launched in promo-api-lb get a public IPv4 address automatically.
  • promo-api-db has no route to the internet gateway and doesn't hand out public addresses.
  • The VPC's main route table has no route to the internet gateway (new subnets must start private).

This machine has an AWS-style account (an emulator: nothing is billed). Your AWS CLI is signed in as the account's administrator.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of AWS Hands-On. Next step: The Private Subnet That Can't Reach Out

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.