1 Answer
- Newest
- Most votes
- Most comments
1
How are you determining that the Lambda function is being invoked when a GET is sent to API Gateway?
I've got a test API Gateway here; in my case GET is mapped to a Lambda function and I get an expected value returned and I also see an invocation happening in CloudWatch Logs. But if I send a POST request API Gateway responds with 403.
Are you using specific methods in API Gateway? Or using "ANY"? If "ANY" Then yes, Lambda will be invoked for all methods. But if API Gateway is configured with specific methods anything which is not mapped will not invoke the back-end function (Lambda in this case).
Relevant content
- Accepted Answerasked 4 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
@Brettski-AWS thank you for your explanation. The issue has been resolved now. I had a greedy proxy which was invoking the backend code.