Store a Database Password in Secrets Manager and Read It Back
Beginner · 30 minutes · 5 tasks, checked automatically · 100 points
In this beginner lab you will use AWS Secrets Manager — running locally in your AWS sandbox — to securely store a database password, retrieve it, update it, and then clean up. By the end you will understand the full lifecycle of a secret: create, read, rotate, and delete. No real AWS account or billing is involved; every command targets your local AWS sandbox.
What you’ll learn
- Create a Secrets Manager secret that holds a database password as a JSON key-value pair
- Retrieve and parse the secret value from Secrets Manager using the AWS CLI
- Update (rotate) the stored password to a new value and confirm the change
- Delete the secret and verify it has been removed
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: AWS
- Services: secretsmanager
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A AWS sandbox created in the Local Cloud Playground
Topics: secrets-manager, security, credentials, aws, local-cloud, password-management
Create a free account to start this lab.