Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package upload failed, check you have lambda:UpdateFunctionCode permissions and that your package is not too big to upload. #119

Open
atishpatel opened this issue Sep 3, 2020 · 0 comments

Comments

@atishpatel
Copy link

It took me a few hours to figure this out so wanted to make note of it here.

If you run into this error, it could be because of different reasons. So, go into the './node_modules/grunt-aws-lambda/utils/deploy_task.js' file and change warning line (line 265) to

grunt.fail.warn('Package upload failed, check you have lambda:UpdateFunctionCode permissions and that your package is not too big to upload. ' + JSON.stringify(err));

This will show you the actual error message. My error was that the function was set to node 8 instead of node 12.

Package upload failed, check you have lambda:UpdateFunctionCode permissions and that your package is not too big to upload. {"message":"The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions.","code":"InvalidParameterValueException","time":"2020-09-03T20:26:54.592Z","requestId":"24c9460a-9762-46f0-b3ba-9377bda83dd7","statusCode":400,"retryable":false,"retryDelay":31.681033677395032}

It was a 1 min fix once i saw that instead of looking up permissions and file size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant