$30 off During Our Annual Pro Sale. View details »

CloudFront + S3 + EC2

CloudFront + S3 + EC2

How to host a modern web application on Amazon AWS

Sergio Sicari

February 17, 2020

More Decks by Sergio Sicari

Other Decks in Programming


  1. CloudFront + S3 + EC2 host a modern web application

    on aws https://www.linkedin.com/in/sergiosicari/ https://github.com/sergioska Sergio Sicari - Senior Backend Developer / DevOps [PED]
  2. None
  3. Why deploy a static frontend? We can get only one

    api set that expose logic application at the same way for everyone API mobile app web application
  4. What is Cloudfront? Cloudfront is a CDN (Content Delivery Network)

    that allow to distribute a resource (data, video, api, ecc) in global scenario with the minimum delay Proxy methods PUT/POST/PATCH/OPTIONS/D ELETE go directly to the origin from the edge locations and do not proxy through the Regional Edge Caches.
  5. Why Cloudfront? • To get CDN benefit • To get

    AWS SSL support on S3 instance
  6. Case Study EC2 (Backend/API) S3 (Frontend) Cloudfront

  7. Case Study: Front-end Deploy On S3

  8. Pro • total separation between front-end and back-end • a

    unique api set for all front-end application (mobile, desktop, web, ecc …) • “only in one” solution under AWS ecosystem • SSL certificate is 0 conf and 0 worry • api and frontend in CDN • Start in free tier and autoscale • “All in one” solution for customer Cons • manage cloudfront cache invalidation after deploy