adobe-apiplatform / api-gateway-aws

AWS SDK for NGINX with Lua
Apache License 2.0
171 stars 44 forks source link

Specifying Lambda Alias/Version #9

Closed vl4d closed 8 years ago

vl4d commented 8 years ago

Hi, I have been trying to integrate lambda invoking service. Recently AWS has added a versioning for lambdas and I am attempting to integrate it using this library.

I have noticed that there is an assumption that if it is a GET request we add the query strings to the URL.

https://github.com/adobe-apiplatform/api-gateway-aws/blob/master/src/lua/api-gateway/aws/AwsService.lua#L301

For POST requests all the params are added to the body of the request.

But as stipulated by Amazon the 'Qualifier' param should always be apart of the URL. Therefore this would make the invoking fail. http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html

I have attempted to modify your library; but this gave the invalid signature. (will continue to try) You help is appreciated 😄.