Setup SES

cloudfront logo

Overview

Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users.

CloudFront delivers your content through a worldwide network of data centers called edge locations. When a user requests content that you’re serving with CloudFront, the request is routed to the edge location that provides the lowest latency (time delay), so that content is delivered with the best possible performance.

You can use Cloudfront for redirect HTTP to HTTPS for Static Web Hosting S3, also implement WAF for more security.

Content

  1. In the AWS Console, search “cloudfront” and choose Cloudfront
01-cloudfront
  1. Choose “Create a CloudFront distribution”
02-cloudfront
  1. At the Origin domain we choose our created S3 bucket
04-cloudfront
  1. At the Origin access we choose:
    • Choose “Legacy access identities”
    • Choose “Yes, update the bucket policy”
    • Choose “Create new OAI”
04-cloudfront
  1. Choose “Create”
05-cloudfront
  1. At Default Cache Behavior > “View” Choose “Redirect HTTP to HTTPS”
06-cloudfront
  1. Choose default
07-cloudfront
  1. At “Web Application Firewall” we choose “Do not enable security protection”, and at the “Settings” we choose “Use North America, Europe, Asia, Middle East, and Africa”
08-cloudfront
  1. Final, scroll down and choose “Create distribution”
09-cloudfront