We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef6e1bd commit efbce64Copy full SHA for efbce64
1 file changed
index.js
@@ -34,18 +34,19 @@ function streambot(service) {
34
Key: { name: { S: context.functionName } }
35
};
36
37
- console.log('Load Environment: %s', JSON.stringify(getParams));
38
dynamodb.getItem(getParams, function(err, data) {
39
if (err) {
40
console.log('[error] Failed to load environment: %s', err.message);
41
return context.fail(err);
42
}
43
44
if (!data.Item) {
45
- console.log('No Environment found!');
+ console.log('No environment found!');
46
return service.call(context, event, callback);
47
48
+ console.log('Loaded environment: %s', JSON.stringify(getParams));
49
+
50
var env = JSON.parse(data.Item.env.S);
51
Object.keys(env).forEach(function(key) {
52
process.env[key] = env[key];
0 commit comments