10/32
Sign inSign up free

1098. Logs That Never Leave the Expensive Tier

easy 10 XP ~8 minHands-on lab

The bucket billing-api-logs keeps every access log in S3 Standard forever, and the storage bill grows every month. Nobody reads logs older than 76 days, but audits need them for one year.

Task

Add a lifecycle rule to billing-api-logs that applies only to objects under access/:

  • after 76 days, objects move to the GLACIER storage class;
  • after 365 days, they are deleted.

Objects under reports/ must not be affected. Keep the bucket's other settings.

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.

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.