We can add a CloudFront distribution to an S3 bucket with a default CloudFront domain and certificate as follows:
- Go to the CloudFront service in the console.
- Click on Create Distribution. We should see options for creating both Web and RTMP distributions:
- Click Get Started under Web distribution.
- Set up the Origin Settings as follows: For Origin Domain Name, select the S3 bucket we created for this recipe in the Getting ready section. Leave Origin Path empty. Use the auto-populated value for Origin ID. For Restrict Bucket Access, select Yes. For Origin Access Identity, select Create ...