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 ) {