From 23110b99033f8ee014254e42fb6989cde7ac09d3 Mon Sep 17 00:00:00 2001 From: Axel Clark Date: Sat, 2 Feb 2019 12:37:36 -0500 Subject: [PATCH] Update index.js for chapter 3 * Add console.log to display keys when running tests * Add OutputKeyPrefix to create a folder for the videos * Update to match the book text --- chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js b/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js index 2f7b59a..2e73717 100644 --- a/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js +++ b/chapter-3/Listing 3.1 - 3.4 - Transcode Video Lambda/index.js @@ -23,8 +23,11 @@ exports.handler = function(event, context, callback){ //remove the extension var outputKey = sourceKey.split('.')[0]; + console.log("key:", key, sourceKey, outputKey); + var params = { PipelineId: '1451470066051-jscnci', + OutputKeyPrefix: outputKey + "/", Input: { Key: sourceKey },