Missing required key 'Bucket' in params
Solution 1
Deleting the stack in console and deploying stack again usually helps.
If it does not help try deploying stack with a new name (if using Serverless framework change name after 'service:' ).
Discussed here.
Solution 2
Most often I have encountered this error when IAM user permissions have been changed between runs of "sls deploy" or are incorrect to begin with.
Best course of action is to go to AWS console -> CloudFormation and check the CloudFormation event logs to see what's going on. If the logs show error in permissions, fix permissions, delete the stack Serverless created from the console and run "sls deploy" again.
squeekyDave
Updated on June 05, 2022Comments
-
squeekyDave almost 2 years
I am trying to deploy a simple lambda function to aws but I get the error Missing required key 'Bucket' in params. The user I have created has full Lambda, S3, Cloudformation and Cloudwatch access.
JS
'use strict';
module.exports.hello = (event, context, callback) => { const response = { statusCode: 200, body: JSON.stringify({ message: 'Go Serverless v1.0! Your function executed successfully!', input: event, }), }; callback(null, response); // Use this code if you don't use the http event with the LAMBDA-PROXY integration // callback(null, { message: 'Go Serverless v1.0! Your function executed successfully!', event }); };
YAML
service: lambda-demo provider: name: aws runtime: nodejs6.10 functions: hello: handler: handler.hello