# Access/get query parameters in aws lambda function

**URL:** <https://forum.serverless.com/t/access-get-query-parameters-in-aws-lambda-function/2141>\
**Category:** Serverless Framework\
**Created:** [June 25, 2017, 10:37pm UTC](https://forum.serverless.com/t/access-get-query-parameters-in-aws-lambda-function/2141 "2017-06-25T22:37:55Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![bbilger](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bbilger/32/1066_2.png) [@bbilger](https://forum.serverless.com/u/bbilger)\
**Post date:** [June 28, 2017, 9:06pm UTC](https://forum.serverless.com/t/access-get-query-parameters-in-aws-lambda-function/2141/10 "2017-06-28T21:06:28Z")

</div>

regarding binary  
check this: [How to add binary media type to serverless.yml](http://forum.serverless.com/t/how-to-add-binary-media-type-to-serverless-yml/2063/4?u=bbilger)  
The important steps are to

- to register binary media types (that’s not possible with serverless - you either need to do this manually or use some plugin)
- to send a “Content-Type” request-header with one of the registered binary media types as value
- decode the base64 encoded body, manually

regarding the timeout:

- Spring Boot is a probably a little heavy… try to unregister everything that’s not really required (add some logging to see where you actually waste the time)
- increase the timeout of your lambda function to 60s

---

_[View the full topic](https://forum.serverless.com/t/access-get-query-parameters-in-aws-lambda-function/2141)._
