Skip to content
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

Allow s3 public read access property to be selected #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryoshindo
Copy link

@ryoshindo ryoshindo commented Sep 18, 2022

I always use serverless-lift through redwoodjs. Thanks for the great package! When I created a static website using this package, I noticed that the publicReadAccess of the S3 bucket was set to true.

I think Lift is written on the premise of caching static websites in S3 bucket with CloudFront. However, when CloudFront is used as a CDN for a static website in an S3 bucket, it is not necessary to set S3 publicReadAccess to true.
In lift, even if publicReadAccess of S3 bucket is set to false using the extensions property, it is explicitly set to true in the src/constructs/aws/StaticWebsite.ts, so it could not be set using only the extensions property.

So I modified the program to allow the user to choose true or false for publicReadAccess.

At the same time, we felt it necessary to be able to change the indexPath property, so we implemented this as well.

If you don't mind, please check out this Pull Request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant