0

API Gateway

Lambda event

With this setting, the variable is set to null no matter what querystring you enter in the URL.

2
  • where is the question ? please add more information Commented Oct 27, 2019 at 7:34
  • For example, even if I access /api/v1/member/test?q=1234, the querystringparameters will be null. Commented Oct 27, 2019 at 12:37

2 Answers 2

3

My problem caused by CloudFront caching setting. I had solved to below setting in CloudFront. Query String Forwarding and Caching: Forward All

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

Comments

-1

Here is two possible solutions

Api call: /api/v1/member?q=1234.

Lambda function : event.queryStringParameters.q

Api call: /api/v1/member/1234.

Lambda function: event.pathParameters['proxy+']

1 Comment

My problem is event.queryStringParamete is always null also on your first solution.

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.