ssm-env-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ssm-env-client

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

aws-ssm wrapper to manage parameters for each service and environment.

Install

npm i ssm-env-client

Usage

import { SsmEnvClient } from "ssm-env-client";

const client = new SsmEnvClient("YourServiceName");

await client.putEnv("Dev");
await client.putEnv("Prod");

const envList = await client.loadEnvList(); // ['Dev', 'Prod']
await client.putParameters("Dev", { A: "111", B: "222" });
await client.putParameters("Dev", { A: "333", B: "444" });

const devParameters = await client.loadParameters("Dev"); // { A: "111", B: "222" }
const prodParameters = await client.loadParameters("Prod"); // { A: "333", B: "444" }

await client.putParameters("Dev", { A: "555" }); // overwrite
const newDevParameters = await client.loadParameters("Dev"); // { A: "555" }

Output

OUTPUT

Readme

Keywords

Package Sidebar

Install

npm i ssm-env-client

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

10.9 kB

Total Files

5

Last publish

Collaborators

  • masahirompp