# @funcmaticjs/parameterstore-plugin

> Funcmatic plugin that fetches environment variables from AWS Parameter Store and sets them in ctx.env

Latest version **0.0.3** (published 2019-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @funcmaticjs/parameterstore-plugin
pnpm add @funcmaticjs/parameterstore-plugin
yarn add @funcmaticjs/parameterstore-plugin
bun add @funcmaticjs/parameterstore-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-06-29 |
| First published | 2019-05-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Jhin Yoo |
| Maintainers | danieljyoo |

## Links

- npm: https://www.npmjs.com/package/@funcmaticjs/parameterstore-plugin
- Repository: https://github.com/funcmaticjs/parameterstore-plugin
- Homepage: https://github.com/funcmaticjs/parameterstore-plugin#readme
- Issues: https://github.com/funcmaticjs/parameterstore-plugin/issues
- npm.io page: https://npm.io/package/@funcmaticjs/parameterstore-plugin

## Dependencies (1)

- [aws-param-store](https://npm.io/package/aws-param-store.md) ^3.0.0

## Recent versions

- 0.0.3 (latest) — 2019-06-29
- 0.0.2 — 2019-06-22
- 0.0.1 — 2019-05-26

## README

# parameterstore-plugin
Funcmatic plugin that fetches environment variables from AWS Parameter Store and sets them in ctx.env

### Install 

```
$> npm install --save @funcmaticjs/parameterstore-plugin
```

### Usage

```js
const ParameterStorePlugin = require('@funcmaticjs/parameterstore-plugin')
func.use(new ParameterStorePlugin())
```

### Configuration

#### Environment Variables

**FUNC_PARAMETERSTORE_PATH** 
- Prefix of parameter name. For example if you have two parameters: `/myapp/prod/VAR1=hello` and `/myapp/prod/var2=world` you should set value to be `/myapp/prod/`. Then this plugin will set the following variables in `ctx.env`:
```js
{
  "VAR1": "hello",
  "VAR2": "world
}
```
- Must be available in `ctx.env` or `process.env` when this plugin runs in the **env handler** lifecycle.

---
_Source: https://npm.io/package/@funcmaticjs/parameterstore-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
