Open the CloudFront console.Choose Create Distribution.Under Origin, for Origin domain, choose your S3 bucket’s REST API endpoint from the dropdown list. … Under Default cache behavior, Viewer, for Viewer Protocol Policy, select HTTP and HTTPS or Redirect HTTP to HTTPS.
How do I set up Amazon CloudFront?
- Choose Create Distribution.
- On the first page of the Create Distribution Wizard, in the Web section, choose Get Started.
- Specify settings for the distribution. …
- Save changes.
How do I host a website with CloudFront?
- Step 1 — Create S3 buckets. …
- Step 2 — Upload files to S3 Bucket. …
- Step 3 — Configure Bucket settings. …
- Step 4 — Make bucket public. …
- Step 5 — Redirect non-www. to www. …
- Step 6 — Create new A records. …
- Step 7 — Request an SSL certificate. …
- Step 8 — Set up Cloudfront 😍