From f9496543fe2b9f107578073cdf02f2a9c8775802 Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Tue, 3 Jan 2017 22:20:29 +0000 Subject: [PATCH] Use env variables for bucket and region --- lambda-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda-handler.js b/lambda-handler.js index bd49244..9d2ee65 100644 --- a/lambda-handler.js +++ b/lambda-handler.js @@ -1,8 +1,8 @@ var tachyon = require( './index' ) exports.handler = function( event, context ) { - var region = event.region - var bucket = event.bucket + var region = process.env.S3_REGION + var bucket = process.env.S3_BUCKET var key = event.key var args = event.args return tachyon.s3( { region: region, bucket: bucket }, key, args, function( err, data, info ) {