Skip to main content

What is AWS CloudFront?

  • Its a content Delivery Network(CDN).
  • It Improves read performance, content is cached at the edge.
  • 216 Point of Precesecne globally (edge locations).
  • It DDos protection, integrations with Shield, AWS Web Application Firewall.
  • Can Expose external HTTPS and can talk to internal HTTPS backends.

Cloud Front – Origins

  • S3 Bucket
    • For distributing files and caching them at the edge.
    • Enhanced security with CloudFront Origin Access identity (OAI)
    • CloudFront can be used as an ingress (to upload files to S3)
  • Custom Origin(HTTP)
    • It can be any HTTP end point like ALB(Applicatiion Load Balancer)
    • It can be EC2 instance(Ec2 instance must be public)
    • S3 static website.

S3 Storage Classes

AWS has many kind of S3 storage class

Amazon S3 Standard (S3 Standard)

1. Designed for high durability of 99.999999999% of objects across multiple Availability Zones.
2. If you store 10,000000 objects with Amazon S3, you can on average expect to incur a loss of a single object once every 10,000 years.
3. 99.99% Availability over a given year.
4. Sustain 2 concurrent facility failures.

Use case:
Big data analytics, mobile & gaming applications, content distribution…

Amazon S3 Standard-Infrequent Access (S3 Standard-IA)

  1. Suitable for data that is less frequently accessed but requires rapid access when needed.
  2. Designed for high durability of 99.999999999% of objects across multiple Availability Zones.
  3. Low cost compared to Amazon s3 Standard
  4. 99.99% Availability
  5. Sustain 2 concurrent facility failures.

Use case:
As a data store for disaster recovery, backups…..

Amazon S3 One Zone-Infrequent Access (S3 One Zone-IA)

  1. Same as AI but is stored in a single AZ.
  2. High durability of 99.999999999% of the object in a single AZ. That means data loss when your AZ is destroyed.
  3. 99.95% Availability.
  4. Low latency and high throughput performance
  5. Low cost compared to AI (by 20%)

Use case:
Storing secondary backup copies of on-remise data, or storing any kind of data so that we can recreate.

S3 Intelligent-Tiering

  1. Low latency and high throughput performance as S3 Standard.
  2. Small monthly monitoring and auto-tiering fee.
  3. Automatically moves objects between two access tiers based on changing access patterns.
  4. Designed for high durability of 99.999999999% of objects across multiple Availability Zones.
  5. 99.99% Availability over a given year.

Amazon S3 Glacier

  1. Low-cost object storage meant for archiving/ backup
  2. Data is retained for the longer term(10s of year).
  3. It’s a big alternative to on-premise magnetic tape storage.
  4. The average annual durability is 99.999999%.
  5. Cost per storage per month ($0.0041/GB) + retrieval cost.
  6. Each item in Glacier is called “Archive” (up to 40TB).
  7. Archives are stored in “Vaults”.

Use case:
Storing secondary backup copies of on-remise data, or storing any kind of data so that we can recreate.

S3 Replication

Before Create S3 bucket replication we should consider some things which are mention below.

  1. After enabling Replication only new objects are replicated not those which are previously created.
  2. Delete operations are not replicated.
  3. We cannot create chaining replication.