website
website copied to clipboard
s3 bucket no longer made public by deploy
My vue-starter project no longer gives public read access to the access bucket when it's deployed, I have to manually make everything in the bucket public after every deploy.
Here are the steps I took to get into this state.
- Create a new project from the vue-starter template
- Run "sls" from the command line to deploy the website
- Open the serverless.yml and add a bucketName and domain that match.
- Change the app: vue-starter and the name: vue-starter to a new value
- Run "sls" again. Observe error that the bucket already exists for a different app and you should remove it first and redeploy.
- Stash the changes to the yml, and run "sls remove"
- Unstash your changes again and run "sls"
- Log into s3 and Observe that all the files in the bucket no longer have Read permissions for the Everyone group.
- Manually use the "Make Public" action in s3 to make everything available to the public.
- Run "sls" again to redeploy
- Refresh your website and see the 403 errors again, confirming in s3 that the files are no longer public again.
Has anyone found a fix for this?