- Newest
- Most votes
- Most comments
Can you access it via it's <ID>.cloudfront.net URL?
Can you create new CloudFront distribution with the following settings?
- Origin domain: s3.eu-west-2.amazonaws.com
- Protocol: HTTPS only
- Origin path: /mistergnu.uk
- Default root object: index.html
To associate it with your domain http://mistergnu.uk
, you need to add Alternate domain name (CNAME) to your CloudFront distribution with value of mistergnu.uk
.
This is in addition to create Route 53 alias record to CloudFront FQDN. Refer to Configuring Amazon Route 53 to route traffic to a CloudFront distribution.
Screenshot below for illustration. Go to CloudFront console to get actual <ID>.cloudfront.net value
For SSL/TLS cert, you can go to Certificate Manager in us-east-1 Region and request a public cert using DNS validation. It should be fairly seamless as your DNS hosting is on Route 53. You can enter mistergnu.uk
and *.mistergnu.uk
as the FQDN(Fully qualified domain name ) to request
Hello.
If you simply want to host a static website on S3, you should be able to solve it by just configuring CloudFront and S3.
The following documents should be helpful.
https://repost.aws/knowledge-center/cloudfront-serve-static-website
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
Also, to issue an SSL certificate to CloudFront with ACM, you need to issue the certificate in the "us-east-1" region.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-requirements.html
Relevant content
- asked 6 months ago
- asked 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
Thank you for your help with this - I still can't get it to work!
I have followed the steps you gave above but can still only get http://mistergnu.uk to load. If I type mistergnu.uk the browser tries to load https://mistergnu.uk which it still cannot do.
I can manage with this the way it is, but I don't know what I am doing wrong!
Thanks anyway
DNS for mistergnu.uk (52.95.148.192), resolves to a S3 bucket and not CloudFront distribution. You need to delete that DNS entry, and create mistergnu.uk DNS record that is a R53 alias record to your <ID>.cloudfront.net as per post above