Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "dotenv-ssm", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "nemanjacoder@gmail.com", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -1,2 +0,2 @@ | ||
# DOTENV SSM | ||
# DOTENV SSM [![npm](https://img.shields.io/npm/v/dotenv-ssm.svg?style=flat-square)](https://www.npmjs.com/package/dotenv-ssm) | ||
@@ -9,22 +9,43 @@ Simple utility to fetch env vars from the [AWS SSM Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html) and create a `.env` file from them. | ||
Intended to be run as a script, i.e.: | ||
Intended to be run as a script, with the following env vars: | ||
```ssh | ||
AWS_ACCESS_KEY_ID=accessKey | ||
AWS_SECRET_ACCESS_KEY=secretKey | ||
AWS_REGION=us-east-1 | ||
SSM_PREFIX=/myapp/production/ | ||
``` | ||
You can execute it with `npx`: | ||
```sh | ||
AWS_ACCESS_KEY_ID=accessKey \ | ||
AWS_SECRET_ACCESS_KEY=secretKey \ | ||
AWS_REGION=us-east-1 \ | ||
SSM_PREFIX=/myapp/production/ \ | ||
npx dotenv-ssm | ||
``` | ||
Or, if you have it installed: | ||
Or, if you have it installed as a binary: | ||
```sh | ||
AWS_ACCESS_KEY_ID=accessKey \ | ||
AWS_SECRET_ACCESS_KEY=secretKey \ | ||
AWS_REGION=us-east-1 \ | ||
SSM_PREFIX=/myapp/production/ \ | ||
npx dotenv-ssm | ||
dotenv-ssm | ||
``` | ||
Or as part of an npm script: | ||
```json | ||
{ | ||
"name": "example", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"ssm-secrets": "dotenv-ssm" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"dotenv-ssm": "^1.0.0" | ||
} | ||
} | ||
``` | ||
## Installation | ||
@@ -39,1 +60,5 @@ | ||
``` | ||
## Licence | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4255
4
63