2.0.0 • Published 6 years ago

serverless-plugin-custom-binary v2.0.0

Weekly downloads
455
License
MIT
Repository
github
Last release
6 years ago

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.

2.0.0

6 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago