项目作者: nem035

项目描述 :
Build .env from AWS SSM
高级语言: JavaScript
项目地址: git://github.com/nem035/dotenv-ssm.git
创建时间: 2020-11-22T10:47:11Z
项目社区:https://github.com/nem035/dotenv-ssm

开源协议:MIT License

下载


DOTENV SSM npm

Simple utility to fetch env vars from the AWS SSM Parameter Store and create a .env file from them.

Note: this script will auto-decrypt the vars.

Usage

Intended to be run as a script, with the following env vars:

  1. AWS_ACCESS_KEY_ID=accessKey
  2. AWS_SECRET_ACCESS_KEY=secretKey
  3. AWS_REGION=us-east-1
  4. SSM_PREFIX=/myapp/production/

You can execute it with npx:

  1. npx dotenv-ssm

Or, if you have it installed as a binary:

  1. dotenv-ssm

Or as part of an npm script:

  1. {
  2. "name": "example",
  3. "version": "1.0.0",
  4. "description": "",
  5. "main": "index.js",
  6. "scripts": {
  7. "ssm-secrets": "dotenv-ssm"
  8. },
  9. "keywords": [],
  10. "author": "",
  11. "license": "ISC",
  12. "dependencies": {
  13. "dotenv-ssm": "^1.0.0"
  14. }
  15. }

Installation

  1. # npm
  2. npm i dotenv-ssm
  3. # yarn
  4. yarn add dotenv-ssm

Licence

MIT