-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 AccessDenied for static website #175
Comments
I had the same issue. I believe because the policy enforces SSL (HTTPS) connection but it does not create (and assign) a certificate to the bucket. So the HTTPS request just hangs given no SSL certificate available. Documentation should be updated for this. |
I should have looked here earlier, this literally cost me hours ... 🙄 . Anyway, me too. Example configuration available in this gist, beautiful HTTP 403 - even with certificate configured according to the examples in the module readme. |
The latest version works well, although you must set |
yup, with |
Needed to add the |
According to the AWS docs: " 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." The module could ignore allow_ssl_requests_only when using a static website. This could prevent big problems |
Yeah, I ran into this with v0.88.0, and it wasn't until I realized the issue was that the bucket policy was trying to enforce TLS and then that setting Having the policy enforce TLS when using as a bucket (ie- |
Issue exists on |
Describe the Bug
Using the module with
Resources created OK, but I get access denied on every resource on the website (with or without cloudfront)
Expected Behavior
Should not happen if we access the website from CloudFront URL.
Steps to Reproduce
Working around it is just disabling SSL (allow_ssl_requests_only = false)
Cheers :)
The text was updated successfully, but these errors were encountered: