New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

serverless-plugin-encode-env-var-objects

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-plugin-encode-env-var-objects

Serverless plugin to encode any environment variable objects

Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

serverless-plugin-encode-env-var-objects

Serverless plugin to encode any environment variable objects.

AWS Lambda/CloudFormation does not allow for environment variables to be of type object.

This Serverless plugin will check any environment variables under provider and functions. If the environment variable is an object the plugin will resave the variable as a base64 stringified version.

Base64 encoding is required because commas are not allowed in AWS Lambda environment variables.

To use, add it to your serverless.yml under plugins:

plugins:
  - serverless-plugin-encode-env-var-objects

Keywords

serverless

FAQs

Package last updated on 02 Jan 2017

Related posts