Open piejanssens opened 3 years ago
In the index.js
module.exports = function(event, context) { const rv = context.getSecretValueJSON('my-new-sec', 'rv.json'); return rv.Info.Success; };
has to be changed to this
module.exports = async function(event, context) { const rv = await context.getSecretValueJSON('my-new-sec', 'rv.json'); return rv.Info.Success; };
In the index.js
has to be changed to this