Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question regarding cloudfront #23

Closed
robertd opened this issue Mar 6, 2021 · 3 comments
Closed

Question regarding cloudfront #23

robertd opened this issue Mar 6, 2021 · 3 comments

Comments

@robertd
Copy link

robertd commented Mar 6, 2021

Howdy. I’d really like to give this a try in the near future. Any plans on migrating away from CloudFrontWebDistribution to Distribution? New cloudfront implementation uses OAI under the hood and bucket doesn’t need to be public anymore. Thanks!

@JakePartusch
Copy link
Owner

Hey @robertd, thanks for the question! I do think that I should migrate this to use Distribution rather than CloudFrontWebDistribution, thanks for pointing that out. Unfortunately, I don't think that Origin Access Identity will work for most website use-cases. As far as I understand, I don't think it is possible to configure an S3 bucket as a website and use OAI?

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

@robertd
Copy link
Author

robertd commented Mar 6, 2021

@JakePartusch Yeah, It’s possible to serve websites with OAI powered setup. We’ve been using this setup at work. The fact that one can serve websites using so many different implementation patterns is somewhat confusing... I wish AWS identified the preferred best practice implementation 😄

Again, I’m not saying that you necessarily need to change your implementation I just wanted to hear your opinion on it and whether you’ve considered it or not. 👍

https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/

@JakePartusch
Copy link
Owner

Great points. Yeah, I've used OAI with Nuxt, but to get nested routing to work, I had to write an additional Lambda Edge function (since S3 couldn't be configured as a website). Maybe they've fixed some of those problems? I'll give it a try again to see if we can make it work in a "zero-config" way.

Repository owner locked and limited conversation to collaborators Mar 7, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants