1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const ssm = require("./ssm");
|
4 | /**
|
5 | * Fetches the encrypted config from SSM and returns
|
6 | * the decrypted and parsed JSON object
|
7 | * @param {String} configName [description]
|
8 | * @return {[type]} [description]
|
9 | */
|
10 | function getConfig(configName = 'dev-config') {
|
11 | return ssm.getEncryptedParameter(configName).then(data => JSON.parse(data.Parameter.Value));
|
12 | }
|
13 | exports.getConfig = getConfig;
|
14 | //# sourceMappingURL=ssm-helper.js.map |
\ | No newline at end of file |