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 回答
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
支持工程师
已回答 2 年前
profile pictureAWS
专家
Chris_G
已审核 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则