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

Files are not public inside the S3 bucket #28

Open
b-vetter opened this issue Apr 15, 2020 · 1 comment
Open

Files are not public inside the S3 bucket #28

b-vetter opened this issue Apr 15, 2020 · 1 comment

Comments

@b-vetter
Copy link

I use currently the following serverless configuration for my small react application.

service: my-service-name

provider:
  name: aws
  runtime: nodejs12.x
  region: eu-central-1

plugins:
  - fullstack-serverless

custom:
  fullstack:
    bucketName: my-bucket-name                  # Unique name for the S3 bucket to host the client assets 
    distributionFolder: ./build            # Path to the client assets to be uploaded to S3 
    indexDocument: index.html                  # The index document to use 
    errorDocument: index.html                  # The error document to use 
    singlePageApp: true                       # If true 403 errors will be rerouted (missing assets) to your root index document to support single page apps like React and Angular where the js framework handles routing 
    compressWebContent: true                   # Use compression when serving web content 
    noConfirm: false                           # Alternative to --no-confirm flag. Use this parameter if you do not want a confirmation prompt to interrupt automated builds.

The fullstack plugin works fine but I've a problem.
The files inside the created S3 bucket are not automatically public so that I must manually change the permission of the files to public.
That means that I get after the deployment just an AccessDenied error from the website.

Can I configure that or can you add an option to set the permission automatically?

@b-vetter b-vetter changed the title S3 Files are not public inside the bucket Files are not public inside the S3 bucket Apr 15, 2020
@nguyenvanduocit
Copy link

I found a commit to fix this problem, but maybe it was not released in v0.7.1

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

No branches or pull requests

2 participants