Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing required key 'Bucket' in params

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
like image 514
squeekyDave Avatar asked Jan 02 '23 00:01

squeekyDave


1 Answers

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.

like image 131
Ula Avatar answered Jan 04 '23 12:01

Ula