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 réponse
4
Réponse acceptée

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
EXPERT
répondu il y a un an
profile pictureAWS
EXPERT
iBehr
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions