AWS Simple Storage Service (S3)
cloud AWS

5 minutes


go back go back go back home home

Introduction to Simple Storage Service

- Usecase:
  - Backup & Storage
  - Disaster Recovery
  - Archival
  - Hybrid cloud storage
  - Application Hosting
  - Media Hosting
  - Datalake and Big data analysis
  - Software delivery
  - Static Website Hosting

S3 Object

PropertyInformation
KeyThis is the name of the object.
It is the full path.
Key is composed of prefix + Object Name:
E.g. s3://mybucket/my_file.txt
E.g. s3://mybucket/myfolder/anotherfolder/myfile.txt
ValueMAX OBJECT SIZE: 5TB
Object values are the contents of the body, it is just stored as a sequence of bytes
If upload more than 5GB, must use “must-part” upload
VersionIdWhen versioning is available, its the version identifier.
MetaDataAdditional information attached to object.
It is the list of test key-value pairs
2 types of metadata: System or User Metadata
TagsUnicode key-value pair, upto 10
Useful security/lifecycle

S3 Bucket


Naming Convension for bucket
- No Uppercase (A-Z)
- No Underscores(-)
- 3 to 63 characters long
- Not an IP
- Must start with lowercase letter or numbers
- Must not start with prefix (xn—)
- Must not end with suffix (-s3alias)

S3 Security

AWS S3 has IAM Policies:
Which API should be allowed for a specific user from API
- Bucket Policies: 
  These are bucket wide rules from the S3 console.
- Object Acces Control List (ACL): 
  Finer grain control (can be disabled).
- Bucket Access Control List (ACL): 
  Less Common (can be disabled).

Note: An IAM Principal can access an S3 object if the user permission allows it or the resource policy allows its & there is no explicit deny.


S3 Website Hosting


S3 Versioning


Amazon S3 Replication [Cross Region Replication(CRR) & Same Region Replication (SRR)]


S3 Storage Access

There are 5 types of storage access provided by S3.


S3 Standard (General Purpose)

S3 Infrequent Access
  # Amazon S3 OneZone Infrequent Access
  - High Durablity 99.99999999999% (11 9s Durablity) in a 
  single AZ.
  - Data Loss when AZ is destroyed.

S3 Glacier Storage
  - Amazon S3 Glacier Instant Retrival:
    - Amazon S3 Glacier Instant Retrival:
      - Milliseconds retrival, 
        great for data access once in a quarter.
      - Minimum storage duration of 90 days.
    - Amazon S3 Flexible Retrival:
      - Minimum storage duration = 90 days
      - Expedite (1-5 mins)
      - Standard (3-5 hours)
      - bulk (5-12 hours)

S3 Glacier Deep Archive (For LongTerm Storage)

Amazon S3 Intelligent Tiering


Amazon S3 Encryption

There are 2 type of encryptions, Client Side Encryptions of which user is responsible, and server side encryption (which is default mode in the cloud.) "S3 Encryption"


Shared Responsiblity for Amazon S3

"S3 Encryption"