I am trying to use the serverless framework to deploy a lambda function to AWS but run into this error when running serverless deploy --verbose
Serverless: Excluding development dependencies...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
CloudFormation - DELETE_IN_PROGRESS - AWS::CloudFormation::Stack - hello-world-dev
CloudFormation - DELETE_COMPLETE - AWS::S3::Bucket - ServerlessDeploymentBucket
CloudFormation - DELETE_COMPLETE - AWS::CloudFormation::Stack - hello-world-dev
Serverless: Stack create finished...
Serverless Error ---------------------------------------
Stack 'hello-world-dev' does not exist
This is the first time deploying it.
I have setup the region in the .yml file and have permissions on AWS, is there a way to change what S3 bucket that the deployment uses and point to an existing one? I think that could be one of the issues.
We can provide a custom bucket for serverless using the plugin. Go through this link use custom bucket in serverless
Edit: You can now directly specify deployment bucket in serverless without any plugin. Refer: https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml#deployment-bucket