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 Answer
1
Accepted Answer

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
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions