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?

Alex
preguntada hace un año995 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas