0

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.

7
  • this is a first time for deployment ? Commented Oct 21, 2020 at 9:24
  • @ThanhNguyenVan yes first time deploying it. Commented Oct 21, 2020 at 9:34
  • can you go to cloudformation AWS and check which service did it error there ? Commented Oct 21, 2020 at 9:37
  • @ThanhNguyenVan in AWS cloudformation shows that it has successfully deleted and the reason is I have reached my bucket limit. Is there a way to point this to an existing bucket? Commented Oct 21, 2020 at 9:42
  • you can go to s3 bucket and look for any s3 bucket there ? Commented Oct 21, 2020 at 9:44

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.