Cost Optimization and Cleanup

Cost Breakdown for This Lab

S3 pricing has three components relevant to this lab: storage, requests, and data transfer out.

Storage is charged per GB per month. Two small HTML files will cost a fraction of a cent — effectively zero for this lab. Requests are charged per thousand — GET requests to your website endpoint are billed at approximately $0.0004 per 1,000 requests (S3 Standard, us-east-1). For a lab with a few dozen test requests, this rounds to zero. Data transfer out of S3 to the internet is charged at approximately $0.09 per GB after the first 100 GB per month. Again, for a lab with kilobytes of content and dozens of requests, the cost is negligible.

This lab qualifies for the AWS Free Tier: 5 GB of S3 Standard storage, 20,000 GET requests, and 2,000 PUT requests per month are free for the first 12 months. For a new account, this lab costs nothing.

There are no hourly resources in this lab — no EC2 instances, no NAT gateways, no load balancers. The only ongoing cost after the lab is the S3 storage of your objects, which is effectively zero for two small files.

Cleanup Instructions

To avoid any residual charges and to practice production discipline, delete all resources created in this lab.

First, delete all objects in the bucket. In the console, select all objects and choose “Delete”. Confirm deletion. A bucket with objects cannot be deleted — you must empty it first.

aws s3 rm s3://your-bucket-name --recursive

Then delete the bucket itself:

aws s3 rb s3://your-bucket-name

Or via the console: select the bucket, choose “Delete”, and confirm by typing the bucket name.

Cleanup Confirmed:

0 of 3 completed

Choose your language

Select your preferred language for the site