bustle / shep

A framework for building JavaScript Applications with AWS API Gateway and Lambda
MIT License
378 stars 27 forks source link

shep deploy --env development #260

Closed bikebaba closed 7 years ago

bikebaba commented 7 years ago

This Command errors with this.

BadRequestException: Errors found during import: Unable to put integration on 'GET' for resource at path '/hello': Lambda function ARN must be in same account at Object.extractError.....

chris-olszewski commented 7 years ago

Which version of shep are you using? On what step of shep deploy is this error occurring?

bikebaba commented 7 years ago

I think I found the issue. The api.json got created like this

get": {
        "x-amazon-apigateway-integration": {
          "uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:77170032698:function:my-shep-project-hello-get:${stageVariables.functionAlias}/invocations",
          "passthroughBehavior": "when_no_match",
          "httpMethod": "POST",
          "type": "aws_proxy"
        }

The lambda ARN is actually 077170032698 not 77170032698. It truncated the 0. I corrected it in the JSON and it worked.

chris-olszewski commented 7 years ago

Out of curiosity is your accountId correct in the shep section of your package.json?