Lambda invocation failed with status: 404. Lambda request id: 8b4b1a12-7f2b-44ec-b4d5-11e677f4f146 - Cloudormation

0

Hello, Please i get this error when testing my API Gateway Method,

Sun Aug 20 12:17:30 UTC 2023 : Lambda invocation failed with status: 404. Lambda request id: 8b4b1a12-7f2b-44ec-b4d5-11e677f4f146
Sun Aug 20 12:17:30 UTC 2023 : Execution failed due to configuration error: 
Sun Aug 20 12:17:30 UTC 2023 : Method completed with status: 500

Below is my Cloudformation

  AuthPOSTMethod:
    Type: AWS::ApiGateway::Method
    DeletionPolicy: Delete
    Properties:
      AuthorizationType: NONE
      HttpMethod: GET
      ResourceId: !ImportValue ExAuthResources
      RestApiId: !ImportValue ExPropuntsAPI
      Integration:
        IntegrationHttpMethod: GET #Other Options [GET, POST, PUT, DELETE, PATCH, ANY]
        Type: AWS_PROXY 
        Uri: !Sub arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${testNLFn.Arn}/invocations
1 回答
4
已接受的回答

Please refer this AWS Documentation, it clearly states that integration method should be POST.

Enter image description here

Hope you find this helpful.

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
专家
已回答 1 年前
profile pictureAWS
专家
iBehr
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则