Open wikichen opened 10 years ago
Yes, please move this issue into the configure-s3-website. The pertinent implementation resides there.
Please send a pull request. If you so so, I can comment on whether it is sufficient or whether we need to add something into it.
I recently started serving my S3 site over HTTPS with CloudFront's new SNI support, but noticed that in order to route over SSL the CloudFront distribution's S3 origin needs to have its Original Protocol Policy set to HTTP Only (instead of Match Viewer).
My issue was documented pretty well on this StackOverflow question, if you'd like to find more: http://stackoverflow.com/questions/22282137/cloudfront-error-when-serving-over-https-using-sni
Since there's no setting in the config file for changing the Original Protocol Policy, this means that I can't use the
s3_website cfg apply
command without having to go to the online interface afterwards to change it back to HTTP Only.I'd submit a pull request but I'm not too familiar with how the CloudFront API works, and I'm guessing this applies more to the
configure-s3-website
gem (I can move this over to that repo if you'd like).