-
Notifications
You must be signed in to change notification settings - Fork 6
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
Layers deployment bucket does not exist #2
Comments
This error occurs because, during the deployment with Serverless Framework, it goes to SSM Parameter Store to retrieve an S3 bucket name - which is the bucket that'll store the dependencies files, etc. There are currently three approaches to deploy the back-end application:
Unfortunately, there's not a workaround via Serverless Framework to first deploy an S3 Bucket and SSM Parameter, the deploy the app using serverless layers. One good approach is combining Serverless Framework with some IaC (Infrastructure as Code) tool such as Terraform. I'd go with the following solution:
|
can you solve it and share running application and please share .env example ? |
Hi @pchauhan77, adding the Terraform step is on my roadmap but there is not an ETA yet. I recommend you to follow the second option ("Manually creating an S3 Bucket for your layers and SSM Parameter") for now. Regarding the |
The error below is thrown when the command
npx sls deploy
is executed. This comes from theserverless-layers
plugin because it could not find an S3 Bucket to push the layers during the deployment.The text was updated successfully, but these errors were encountered: