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
전문가
답변함 일 년 전
profile pictureAWS
전문가
iBehr
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠