4.1.0 • Published 1 year ago

ssm-parameters-boot v4.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

4.1.0

1 year ago

4.0.1

1 year ago

3.0.0

2 years ago

1.2.1

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

4.0.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago