Missing required key 'Bucket' in params
Error Message
Missing required key ‘Bucket’ in params
Problem
Serverless Framework creates an S3 bucket to store the deployment artifacts for your Serverless application. This error usually happens if the first serverless deploy
command failed to create the S3 bucket. This in turn will cause all the subsequent deployments to fail with the above error.
There are two common reasons for the S3 bucket failing to create:
- IAM credentials not having permission to create S3 buckets
- Your AWS account reaches the 100 S3 bucket limit
The two above failures have two error messages that look like:
s3:CreateBucket Access Denied.
or
You have attempted to create more buckets than allowed.
Check your first failed deployment for these error messages.
Solution
First, identify and fix the issue that caused the initial failure. Here is how to fix the IAM issue and the bucket limit issue.
Then, go over to your CloudFormation console and manually remove the stack. Note: a serverless remove
might fail with the same error and might not actually remove the stack.
After the stack is done removing, try deploying again.
Help improve this page. Edit it with GitHub
Was this page helpful? Let us know via Twitter
Do your Serverless deployments take too long? Incremental deploys in Seed can speed it up 100x!
Learn More