I am looking for a solution where the aws api gateway can add few extra headers before forwarding to the actual backend. I can imagine that keeping lambda function as a call back function can be one way to execute it. My calls can be slow, which means, if i use lambda functions in between, i pay a lot.
Is there any other way to do it ?
I am looking for something similar to a 'pre-processor' in Tibco Mashery. Which means, when the request comes, this method/logic is executed by api gateway, which will add the extra headers, and api gateway will forward the request to the actual backend.
Edit: I need to fill the header dynamically based on the incoming request and some mapping tables in db.
Thanks

