Deleting Backups Needs MFA
The group tax-calc-dba has full access to the bucket tax-calc-db-backups through the inline policy backups. Security wants a stolen access key to be useless for destroying backups.
Change the group's policy backups so that, for members of tax-calc-dba:
tax-calc-db-backups (s3:DeleteObject, s3:DeleteObjectVersion) is denied unless the request was signed with MFA, and also denied when the request carries no MFA information at all (plain access keys);The emulator doesn't evaluate IAM conditions, so the grader evaluates the policy document the way IAM does, for requests with and without MFA. 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: Close a Public Bucket Without Breaking the App
Teaching or writing about this? Embed this lab on your page
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.