Can't create new function in 2.0.0-alpha.0

Open
#840 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, javascript, node.js
Domain
cli, cloud

Research direction

Reproduce deployment of a new function with node-lambda 2.0.0-alpha.0 and inspect the ResourceNotFoundException. Compare the behavior with issue #182 and pull request #757; done means a function that does not yet exist in AWS can be deployed successfully.

Written by the indexing model from the issue text.

Description

I cannot deploy an AWS Lambda function using node-lambda. After upgrading to 2.0.0-alpha.0, when I try to deploy a new function that doesn't exist yet, I get this error:

ResourceNotFoundException: Function not found: arn:aws:lambda:eu-west-1:333333:function:myService-staging
    at AwsRestJsonProtocol.handleError (/home/vlad/n/lib/node_modules/node-lambda/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js:891:27)

This seems related to issue #182 in the node-lambda repository, but in my case it's the opposite. I've verified my IAM permissions include "lambda:*" as suggested, and I don't have VPC settings configured. The function definitely doesn't exist in AWS yet, but node-lambda fails to create it.

Related:

Dominant language
JavaScript
Stars
1.4k
Forks
185
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from motdotla/node-lambda

All issues in motdotla/node-lambda

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.