Skip to content

abiglobalhealth/serverless-inject-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Serverless Inject File

Inject files into your lambda functions on deploy

Installation

Install the package with npm: npm install serverless-inject-file, and add it to your serverless.yml plugins list:

plugins:
  - serverless-inject-file

Usage

Add the files you want to inject under custom -> injectFile

This plugin is run after serverless variables are resolved, so you can reference ssm or file paths as you like.

custom:
  injectFile:
    .env/hello.txt: 'hello world!'
    .env/secrets.json: ${ssm:mySuperSecrets}
    .env/config.json: ${file(../config.${self:provider.stage}.json)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published