Serverless: The specified bucket does not exist

Viewed 13413

I stupidly removed the s3 bucket for my serverless project. When I now try and deploy or remove my application I get this error: The specified bucket does not exist How can I recreate the s3 bucket from Serverless?

3 Answers

For production use this plugin

https://www.serverless.com/plugins/serverless-deployment-bucket

and set the bucket. it will create if it doesnt exist.

provider:
    name: aws
    region: us-east-1
    runtime: provided.al2
    stackName: buggy
    deploymentBucket:
        name: buggy-deploymentbucket

plugins:
  - serverless-deployment-bucket
Related