Skip to content

Lab · Cloud Computing (AWS, Azure, Google Cloud)

Lab: a private S3 bucket for a kirana shop

Labbeginner· about 1.5 hours· 5 steps

The brief

Sharma Kirana Store in Pune wants its daily price list kept safely in the cloud. Make an S3 bucket in Mumbai, upload the price list, prove that the bucket is private, estimate the monthly bill in Python, and delete everything at the end.

Why it matters

Almost every company keeps files in S3 or its Azure and Google equivalents: invoices, product photos, backups and reports. Creating a bucket in the right region, checking that it is not public and knowing what it will cost are daily tasks for a cloud support associate, and forgetting to clean up is the most common way learners get a bill.

Skills you practise

  • aws s3 mb, cp, ls and rb
  • bucket regions
  • S3 Block Public Access
  • S3 storage and request pricing
  • cleaning up resources

You need

  • A free AWS account with a budget alert set (lab cc-lab-safe-account)
  • AWS CLI v2 configured with an IAM Identity Center or IAM user profile, not root, region ap-south-1 (or AWS CloudShell in Mumbai)

What you will have at the end

Pasted proof of a private bucket in Mumbai holding the price list, a tested S3 cost calculator (cost.py), and proof that the bucket was deleted.

How it is marked (rubric, 100 points)
Right region and privateThe bucket was in ap-south-1 and all four Block Public Access settings were true.35
Cost estimates3_monthly_cost passes every check and uses the prices passed in.30
Cleaned upThe bucket is deleted and no longer listed.25
Can explainYou can say why a pre-signed URL is safer than a public bucket.10

0/5 steps done

Step 1 of 5

Make the bucket in Mumbai

A bucket named kirana-prices-<yourname>-<4 digits> exists, and its location is ap-south-1.

Bucket names are shared by every AWS customer in the world, so pick one nobody has: kirana-prices-, then your name, then four random digits, all lower case. aws s3 mb (make bucket) creates it; --region ap-south-1 keeps the data in Mumbai.

get-bucket-location then tells you where it really is. If it prints null, the bucket is in us-east-1 (North Virginia): delete it and make it again with the region. Storing a few kilobytes costs a tiny fraction of a cent, within free credits.

$ aws s3 mb s3://kirana-prices-asha-4821 --region ap-south-1
make_bucket: kirana-prices-asha-4821
Run this on your machine, then paste the output below
$ aws s3api get-bucket-location --bucket kirana-prices-<yourname>-<digits>
Your notes: cost.py

Write down each command you ran. It goes into your project summary.