• Pricing
© 2025 Serverless, Inc. All rights reserved.
Terms of ServicePrivacy Policy
maciejtreder

Serverless Apigw Binary

by

Plugin to enable binary support in AWS API Gateway.

0
160
  1. Serverless Apigw Binary

npm version Build Status

serverless-apigw-binary

This Serverless plugin automates the process of adding binary files support in API Gateway. AWS API gateway binary support

Installation

npm install --save-dev serverless-apigw-binary

Configuration

serverless.yml:

plugins:
 - serverless-apigw-binary

custom:
  apigwBinary:
    types:           #list of mime-types
      - 'image/jpeg'
      - 'text/html'

Usage

serverless deploy    # Plugin runs within serverless deploy hook

Examples

  • 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

Contents

  • serverless-apigw-binary
  • Installation
  • Configuration
  • Usage
  • Examples

Related

GuidesPluginsExamplesSlack CommunitySupport