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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With