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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南