JSPM

serverless-plugin-custom-binary

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 590
  • Score
    100M100P100Q97093F
  • License MIT

Enable binary support for API Gateway

Package Exports

  • serverless-plugin-custom-binary

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-plugin-custom-binary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.