Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

serverless-plugin-custom-binary

2.0.0 • Public • Published

CircleCI

serverless-plugin-custom-binary

This is a plugin for Serverless that sets up BinaryMediaTypes and ContentHandling to enable support for Binary Payloads in API Gateway.

Usage

 
service: my-service
 
plugins:
  - serverless-plugin-custom-binary
 
custom:
  apiGateway:
    binaryMediaTypes:
      - 'application/json'
 
functions:
  helloword:
    handler: handler.hello
    events:
      http:
        path: /hello
        method: GET
        contentHandling: CONVERT_TO_BINARY

Notes

Several other plugins exist but now CloudFormation appears to support configuring these properties directly. The other plugins make sure of API calls that create race conditions or otherwise complicate deployments.

Install

npm i serverless-plugin-custom-binary

DownloadsWeekly Downloads

128

Version

2.0.0

License

MIT

Unpacked Size

221 kB

Total Files

7

Last publish

Collaborators

  • avatar