UNPKG

514 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const 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 */
10function getConfig(configName = 'dev-config') {
11 return ssm.getEncryptedParameter(configName).then(data => JSON.parse(data.Parameter.Value));
12}
13exports.getConfig = getConfig;
14//# sourceMappingURL=ssm-helper.js.map
\No newline at end of file