Create CloudFront Distribution

  1. Open Amazon CloudFront console
  2. Click Create distribution

CreateDistribution

  1. Select the origin domain is fcjdmswebstore bucket, then click Use website endpoint

CreateDistribution

  1. Scroll down, in Default cache behavior section, select Redirect HTTP to HTTPS for Viewer protocol policy
  2. Select CORS-S3Origin for Origin request policy part

CreateDistribution

  1. Scroll down, in Settings section, click Add item
  • Enter CNAME: www.fcjdms.click and fcjdms.click
  • Select the SSL certificate you created in previous step

CreateDistribution

  1. Scroll down to bottom, enter index.html for Default root object pattern
  • Click Create distribution

CreateDistribution

  1. Go back to the Route 53 console
  • Select Hosted zone in the left menu and select the created hosted zone.
  • Click Create record

CreateRecord

  1. Turn on Alias
  2. Select Alias to CloudFront distribution
  • Select the newly created CloudFront distribution
  • Click Add another record

CreateRecord

  1. Enter www for record name.
  • Turn on Alias
  • Select Alias to CloudFront distribution
  • Select the newly created CloudFront distribution
  • Click Create records

CreateRecord

  1. You have created the records for CloudFront distribution.

CreateRecord

  1. Enter the following links in a new tab in your web browser: http://DOMAIN, http://www.DOMAIN, replace all DOMAIN with your domain name. All those links redirect to the new path, replace http with https.

CreateRecord

You have completed the workshop to make the application more secure. In the next workshop, we will implement the search feature with Amazon OpenSearch Service for the application.