What is 'test-invoke-stage' in my Lambda API Gateway Triggers?

0

I deployed, via AWS CDK, a Lambda with API Gateway as a trigger. Now I can see 3 strange API endpoint triggers with test-invoke-stage in it.

https://abcdef12345.execute-api.us-east-1.amazonaws.com/test-invoke-stage/some-value
https://abcdef12345.execute-api.us-east-1.amazonaws.com/test-invoke-stage/{proxy+}
https://abcdef12345.execute-api.us-east-1.amazonaws.com/test-invoke-stage/

I didn't find any useful information about test-invoke-stage only some not informative mentions.

What are these endpoints about? How can I use them? Where can I read about it?

1 Resposta
1
Resposta aceita

Hi, this is to allow test-invoke CLI: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigateway/test-invoke-method.html

So, you can check the behavior of your lambda via CLI and see how it behave with different http headers or other low-level networking fields. It usually make automated testing simpler.

profile pictureAWS
ESPECIALISTA
respondido 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