0

There are many similar threads out there, so I'll try to be simple and specific.

My API Gateway has GET method, without "Use Lambda Proxy integration" check marked. (Yes, to make my life little bit more difficult)

  • My assumption is that I have API Gateway portion working correctly, with query string parameters.
  • It has been deployed through Deploy API button

I also have mapping template written, as exactly said by this instruction provided by AWS.

Now, in java, I have the following:

public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent event, Context context) {

The concern is that event object is empty. Have I not been using the correct request event object?

ADDITIONAL NOTE

Per request, here's my lambda function below:

LambdaLogger logger = context.getLogger();
logger.log("EVENT: " + gson.toJson(event));

And here's what CloudWatch prints:

EVENT: {}
2
  • 2
    After making these changes did you deploy your API once again? Your event should have these parameters. Commented Dec 5, 2021 at 3:51
  • @NinadGaikwad Thanks for your comment. Yes, it's been deployed, and it is my mystery as well, why my event didn't have these parameters. Commented Dec 15, 2021 at 21:28

1 Answer 1

0

Did you configured this under GET - > Method Request? enter image description here

After doublechecking, did you press the deploy button ? enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

Yes, those steps have been followed. Plus, redeployed my lamba code just in case.
maybe you can provide more details about your lambda?
Not much to share, but I made a small edit per your request, onto my question section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.