Sign inSign up free

1099. Open the Database to the App Tier Only

easy 10 XP ~8 minHands-on lab

The PostgreSQL servers of barcode use the security group barcode-db. To get a deploy working, someone opened port 5432 to 0.0.0.0/0. The app servers use the security group barcode-app, and their IP addresses change with every deploy.

Task

  • barcode-db allows PostgreSQL (TCP 5432) from members of barcode-app, by security group reference.
  • Nothing else can reach 5432 on barcode-db: no rule from 0.0.0.0/0, ::/0, or any other CIDR on that port.
  • Keep the existing SSH rule (TCP 22 from 10.40.0.0/16).

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: Security Group Says Yes, Network Says No

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.