s3_website icon indicating copy to clipboard operation
s3_website copied to clipboard

Cannot update Origin Protocol Policy from CLI

Open wikichen opened this issue 10 years ago • 1 comments

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).

wikichen avatar Mar 11 '14 01:03 wikichen