List, Copy and Delete S3 Objects with the AWS CLI
Beginner · 30 minutes · 4 tasks, checked automatically · 100 points
In this foundational lab you will practise the most common day-to-day S3 object operations entirely from the command line. You will create a bucket, upload several files, list the objects inside it, copy objects between prefixes (folders), and finally delete individual objects and clean up the bucket. Everything runs against a local AWS emulator — no real account or billing is involved.
What you’ll learn
- Create an S3 bucket and upload multiple objects using the AWS CLI
- List objects in a bucket and filter results by prefix
- Copy objects between prefixes within the same bucket
- Delete specific objects and verify the bucket is clean
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 4 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: S3
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: s3, aws-cli, object-storage, storage, copy, delete, list
Create a free account to start this lab.
Keep going
- Create Your First S3 Bucket and Upload an Object
- Turn On S3 Versioning and Recover an Overwritten File
- Create a DynamoDB Table and Write Your First Item
- Read Data from DynamoDB with get-item and query
- Send and Receive Your First Message with an SQS Queue
- Publish to an SNS Topic and Deliver to an SQS Queue