AWS S3 contd
- Only Empty Buckets can be deleted

Storage classes in S3
- Create an s3 bucket and upload some objects



Lets find destinations in s3 uri formats
- S3 URI Format:
- bucket:
s3://<bucket-name> - folder:
s3://<bucket-name>/<folder-name> - object:
s3://<bucket-name>/<object-name>ors3://<bucket-name>/<folder-name>/<object-name>
- bucket:
Lets find the ARN (Amazon Resource Name)
- ARN uniquely identifies the resources created in AWS
- ARN for s3 Refer Here
arn:aws:s3:::bucket_name/key_name
- ARN for my bucket
qtstorageclassdemowill bearn:aws:s3:::qtstorageclassdemo - ARN for my object one.mp3 will be
arn:aws:s3:::qtstorageclassdemo/music/one.mp3
Bucket Properties
- Navigate to s3 console and select the bucket and click on properties

- Location/Region
- Bucket versioning
- Tags
- Default Encryption
- Transfer Accelartion
- Requester Pays
- Static Website Hosting
Versioning
- By default if we upload the object with sme name it overrites, when we enable versioning a new version of the object with same name is created and this becomes the default version
- Enable versioning


- upload 2 versions of some text file


- Now suspend versioning i.e. from now on no more versioning.
- As of now one.txt has two versions

- lets add one more one.txt
Requester pays
- In S3 we have two costs
- one for storage
- other for access
- Requester pays is a mode where the user should be aws user from other account who will be paying access cost and you would only be paying storage costs.
Next Steps:
- How to connect s3 and ec2 privately ?

