Closed bikebaba closed 7 years ago
Which version of shep are you using? On what step of shep deploy
is this error occurring?
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.
Out of curiosity is your accountId
correct in the shep
section of your package.json
?
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.....