diff --git a/README.md b/README.md index dbad7ea..e7bcbb3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,19 @@ This module will: - store and recall env vars to AWS parameter store based on env and app tags ### Install -`npm i` +`npm i -g @opentorc/config-wrapper` + +### CLI Usage +`config-wrapper --help` +#### Commands +- remapKeysInEnv: take existing env vars and remap them to new env vars. ie: DEV_AWS_ACCESS_KEY_ID -> AWS_ACCESS_KEY_ID + * --outfile file to save the new env vars to + * --oldprefix prefix to be replaced + * --newprefix prefix to replace with +- saveParamsFile: save params to a file so that they can be loaded in another process via source command + * --outfile file to save the aws env vars to + * --env aws application environment + * --service aws application service #### Tests `npm test` diff --git a/package.json b/package.json index 728e480..2cb3c75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@opentorc/config-wrapper", - "version": "1.0.1", + "version": "1.0.2", "description": "config management wrapper", "main": "./src/index.js", "bin": { diff --git a/src/lib/awsManager.js b/src/lib/awsManager.js index 73d9836..d57aa36 100644 --- a/src/lib/awsManager.js +++ b/src/lib/awsManager.js @@ -32,7 +32,9 @@ async function getParametersByService(env, service, isEncrypted) { return params } -// TODO: add param caching and support for labels +// TODO: add param caching +// TODO: add support for labels +// TODO: add support for saving parameters module.exports = { constructParamPath,