Amazon Web Services (AWS) - Create CloudFront Distributions using the AWS CLI

by
Jeremy Canfield |
Updated: May 20 2024
| Amazon Web Services (AWS) articles
CloudFront is an Amazon Web Services (AWS) Content Delivery Network (CDN) service. One option is to return objects (files) in an S3 Bucket. For example, let's say you have an index.html file in your S3 Bucket.
The aws cloudfront create-distribution command can be used to create a CloudFront Distribution. In this example, the CloudFront Distribution is associated with an S3 Bucket.
aws cloudfront create-distribution --origin-domain-name my-bucket-abc123.s3.amazonaws.com --default-root-object index.html
Did you find this article helpful?
If so, consider buying me a coffee over at