ssm-env-client
v1.0.2
Published
aws-ssm wrapper to manage parameters for each service and environment
Downloads
2
Readme
ssm-env-client
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" }