import * as ssm from './ssm'; /** * Fetches the encrypted config from SSM and returns * the decrypted and parsed JSON object * @param {String} configName [description] * @return {[type]} [description] */ export function getConfig(configName: string = 'dev-config'): Promise { return ssm.getEncryptedParameter(configName).then(data => JSON.parse(data.Parameter.Value)); }