AWS Lambda function REST API end point - 403 error

后端 未结 5 828
不知归路
不知归路 2021-01-04 00:06

I have an AWS Lambda function that is exposed as a REST API.

When it is invoked it via the Test button on aws lambda console, it works.

When it is invoked v

5条回答
  •  别那么骄傲
    2021-01-04 00:31

    Perhaps you are sending request to a wrong endpoint.

    I was getting 403 error response by sending a POST request to https://example.com/locate

    However, once I added stage http://example.com/dev/locate and deployed changes to this API, it worked ok, returning 200 response.

    Hope that helps.

提交回复
热议问题