1 Answers
0
Ok, I figured this out. My certificate, cloudfront, and route53 are set up correctly, so this is what I had to fix:
- Your s3 bucket name cannot have a dot or period in it. That is, example.com won't work, so you'd name it example-com
- Your s3 bucket should not be set up to host websites. This is because it's the origin for cloudfront. Cloudfront is the website, not your s3 bucket. (Then in Route53, make sure you have an alias (A) record pointing to the cloudfront distribution.)
You can't rename a bucket so I created a new one with the right naming convention. I haven't figured out the subdomain, but that part is secondary and is going to be moved into the main domain.
Hope this helps someone. It's not documented as a straightforward workflow in the aws docs, rather as notes. If anyone from the AWS docs team sees this, please let my post be a vote for docs specifically on this workflow.
If those who work on this AWS functionality see this, it'd be so cool if setting up https for static sites using s3 were simplified. Thank you!
answered 3 years ago
Relevant questions
Can't use ACM certificate in Cloudfront China
Accepted Answerasked 4 months agoCreating CloudFront Distribution, where do I enter my domain name?
Accepted Answerasked 8 days agoStatic website in S3 not working with HTTPS
asked 2 years agoSSL certificate with S3 bucket
asked 14 days agoHow can I use the same domain name in different AWS accounts?
asked 3 years agoHTTPS/TLS + static S3 websites
Accepted Answerasked 2 years agoHow to use https with S3 (Alternate Domain Names) and Cloudfront
asked 3 years agoHow to use the same ACM certificate with CloudFront and ELB
Accepted Answerasked 4 years agoI can't delete my certificate because it's associated with an invisible cloudfront distribution
Accepted Answerasked 9 days agoS3 Static Website RoutingRules when using Cloudfront and a domain name
asked 3 years ago