S3 contd
Activity 2: Storage classes
- By default, AWS will assign standard storage class.

- Storage class can be changed

- Lets change to Standard-IA


- Lets change to Intelligent-tiering
-
Manually changing storage classes is not sensible, we have two options
- Intelligent tiering
- Lifecycle
-
If we have a pattern such as shown below, then lifecycle is better
- first 180 days => Standard
- 181-365 days => One Zone -IA
- 365 + => Glacier
- Lets create a lifecycle
- Select Bucket and management create a Lifecycle rule



Versioning in S3
- AWS S3 supports enable and suspend versioning
- Lets enable versioning



- When we write life cycle rules we need to also write on non current versions
Replication in S3
- Redundancy is for AWS to provide durability and availability. Replication is something which we can use to copy contents for one bucket to another.

Requester pays
- In s3 we have two costs
- access costs
- storage costs
- When we select requester pays, then aws will charge the requesting aws account for access costs
Activities
- Create an s3 bucket with folder docs
- Enable versioning
- atleast have 3 versions of resume.txt
- delete the first/oldest version
- now suspend versioining
- Create one more s3 bucket in a different region and replicate all the data from above steps to current bucket
- Create a lifecycle rule to move to intelligent tiering after 60 days
