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 Resposta
4
Resposta aceita

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
ESPECIALISTA
respondido há um ano
profile pictureAWS
ESPECIALISTA
iBehr
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas