grunt-aws-lambda icon indicating copy to clipboard operation
grunt-aws-lambda copied to clipboard

Missing required key 'FunctionName' in params

Open benbowler opened this issue 8 years ago • 1 comments

Running "lambda_deploy:prod" (lambda_deploy) task

AWS API request failed with undefined - MissingRequiredParameter: Missing required key 'FunctionName' in params

I've set the function option but I can't seem to avoid this message deploying to Lambda. Have there been API updates?

Here's my full conf.

    // Lambda
    lambda_invoke: {
        default: {
        }
    },
    lambda_deploy: {
        default: {
            options: {
                // aliases: 'prod',
                // enableVersioning: true
            },
            function: '<%= aws.AWSLambdaFunctionName =>',
            arn: '<%= aws.AWSLambdaARN %>'
        }
        // prod: {
        //     options: {
        //         aliases: 'prod',
        //         enableVersioning: true
        //     },
        //     arn: '<%= aws.AWSLambdaARN %>'
        // }
    },
    lambda_package: {
        default: {
        },
        prod: {
        }
    }
  });

benbowler avatar Jul 23 '16 02:07 benbowler

@ben Did you find a solution to this issue ?

Edit: The solution is to add necessary key value pair to the Environment variables in your specific Lambda configuration inside AWS.

akwasin avatar Nov 01 '17 10:11 akwasin