serverless-apigw-binary
serverless-apigw-binary copied to clipboard
Serverless plugin for binary files support in AWS Gateway
I'm attempting to crate a lambda function in python that accepts an image file via a POST request. I've managed to config your plugin to my serverless service, and indeed...
uses the trick learned here: https://github.com/awslabs/aws-serverless-express/issues/58 https://github.com/awslabs/aws-serverless-express/issues/58#issuecomment-303193847 https://github.com/awslabs/aws-serverless-express/issues/58#issuecomment-322263402 to solve the problem discussed here; https://github.com/serverless/serverless/issues/2797#issuecomment-331698109 i also refactored the stage/apiId variables to be instance variables, they were a pain to...
I would like to use this plugin when calling `serverless webpack serve --function run` locally for development. I did it but the `event` parameter does not contain file content (I...
I'm using this plugin with an shared API Gateway and it resets the config of API Key Source back to `HEADER` Main `serverless.yml` which defines and exports the root API:...
This mirrors back the API Key Source setting and fixes #53 Since this is executed in a post deploy hook, I decided to get the information about the API Key...
Do you have a python exemple ? `curl -X POST -H 'Content-Type: multipart/form-data' -F "[email protected]" 'https://blahblah.execute-api.eu-west-1.amazonaws.com/dev/test` give me an event like this : `{ "body": "--------------------------78354a54cba112e5\r\nContent-Disposition: form-data; name=\"image\"; filename=\"picture.jpg\"\r\nContent-Type: image/jpeg\r\n\r\n����\u0000�DataLen:...
for now i'm using the below script to invoke + decode the response data: `invoke` script: ```sh #!/bin/sh RESP=$(sls invoke $@) STATUS=$(echo $RESP | jq .statusCode --raw-output) if [ "$STATUS"...