ssm-parameters-boot
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

ssm-parameters-boot

npm package Build Status Downloads Issues Commitizen Friendly Semantic Release

Edit parameters in CLI and store to aws ssm parameter store

DEMO

CLI

Requirements

node >= 16.0
typescript >= 4.7
ts-node >= 10.8

Install

npm i ssm-parameters-boot ssm-env-client construct-typed-parameters

Setup

// cli.ts
import { bootstrap } from "../src/index.js";
import { SsmEnvClient } from "ssm-env-client";
import { TypedParameters } from "construct-typed-parameters";

const parameters = new TypedParameters((pt) => ({
  TOKEN: pt.string({ required: true, defaultValue: "token" }),
  FIREBASE_CONFIG: pt.json<{ apiKey: string }>({
    required: true,
    defaultValue: { apiKey: "apiKey" },
  }),
}));
const ssmClient = new SsmEnvClient("YourServiceName");

const result = await bootstrap(parameters, ssmClient);
console.log(result);

Usage

node --loader ts-node/esm cli.ts

Output

OUTPUT

Readme

Keywords

Package Sidebar

Install

npm i ssm-parameters-boot

Weekly Downloads

0

Version

4.1.0

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • masahirompp