How it works...

To summarize, we did the following in this recipe:

  1. We created a CloudFront distribution, specifying the root domain and the WWW sub-domain
  2. We created A records for the root domain and the WWW sub-domain
  3. We then hit the root domain and the WWW sub-domain from a browser, and received a response from the file uploaded into the S3 bucket

To customize the input for creating a CloudFront distribution with the CLI, we have to first create a CloudFront distribution config JSON file, and then execute it. If there is no customization, we do not have to specify this JSON file, but we can only provide the original domain, as we saw in the previous recipe. With a CloudFormation template, we always have to specify the essential distribution config parameters in the template.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.212.71