January 2019
Intermediate to advanced
490 pages
15h 37m
English
You can create a CloudFront distribution with the AWS CLI by either passing a distribution config, or by specifying the original domain name (for example, an S3 bucket name). In this recipe, we will use the shorter option:
aws cloudfront create-distribution \ --origin-domain-name qnatime.s3.amazonaws.com \ --default-root-object index.html \ --profile admin
This command will immediately return the ID of the distribution and the defaults that are considered:

The Etag in the response from the CloudFront command is needed to make ...
Read now
Unlock full access