Not every file is used every day. S3 has different storage classes, like shelves in a warehouse: a shelf by the door costs more, a shelf in the back costs less but takes longer to reach.
| Class | Keeping it | Reading it | For |
|---|---|---|---|
STANDARD | normal price | cheap and fast | files used every day |
STANDARD_IA | about half | costs a little per read | files used a few times a year |
GLACIER | much cheaper | slow (hours) and costs more | archives you hope you never need |
IA means infrequent access. New objects go into STANDARD unless you say otherwise.
New concept
--storage-class
Picks the shelf when you upload. Copying an object onto itself with a new class moves it to another shelf.
Usageaws s3 cp file s3://bucket/key --storage-class class
Example
aws s3 cp report-2023.csv s3://dragon-photos-2026/reports/report-2023.csv --storage-class GLACIER
To see which shelf each object is on, aws s3 ls is not enough. The next lab shows a command that lists the class too.