SSL certificate with S3 bucket

0

I created 2 buckets in S3, one is main domain and the second one is subdomain both in the region of Mumbai. I want to include SSL certificate on my domain for that I acquired SSL certificate from ACM (Origin is Virginia) and made a cloudfront distribution to create connection between S3 bucket and SSL certificate, I successfully created distribution and linked it with main domain and created its records in DNS but still my domain is running on http instead of https.

1 Answer
1

Hello,

When your origin is an Amazon S3 bucket, your options for using HTTPS for communications with CloudFront depend on how you're using the bucket. If your Amazon S3 bucket is configured as a website endpoint, you can't configure CloudFront to use HTTPS to communicate with your origin because Amazon S3 doesn't support HTTPS connections in that configuration.

If you want to require HTTPS for communication between CloudFront and Amazon S3, you must change the value of Viewer Protocol Policy to Redirect HTTP to HTTPS or HTTPS Only.

Can you confirm if the above 2 requirements have been checked ?

Check the below articles and you ll be able to better configure and understand the same. [1] https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-https-requests-s3/

[2] https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-cloudfront-to-s3-origin.html

profile pictureAWS
SUPPORT ENGINEER
answered 2 years ago
profile pictureAWS
EXPERT
Chris_G
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions