This Serverless plugin automates the process of adding binary files support in API Gateway.
npm install --save-dev serverless-apigw-binary
serverless.yml:
plugins:
- serverless-apigw-binary
custom:
apigwBinary:
types: #list of mime-types
- 'image/jpeg'
- 'text/html'
serverless deploy # Plugin runs within serverless deploy hook
- Angular Universal + AWS Lambda + API Gateway - binary support example : AWS Lambda + API Gateway - live demo
- Node.js + AWS Lambda + API Gateway - binary support example : Node.js + AWS Lambda + API Gateway - binary support live demo
Something missing? More documentation? All PRs welcome at https://github.com/maciejtreder/serverless-apigw-binary