laurilehmijoki/s3_website

HTTP to HTTPS Redirection

josjaf opened this issue · 4 comments

I would love to see an example that takes all HTTP requests and redirects to HTTPS. Does anybody have working YAML for this? I'm trying to change the default viewer policy protocol.

You should configure this using HSTS or Viewer Protocol Policy.

Looks like there are some options for using Lambdas to achieve HSTS now.

@josjaf Have you moved forward at all on this yet? Your experiences would be useful to us.

I have HTTPS to HTTP redirect working, but I had to set it manually, outside of this tool.

Could you please share how you accomplished it? Was it using a Policy or using a Lambda, or something else?