Skip to content

Commit

Permalink
Use env variables for bucket and region
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Jan 3, 2017
1 parent ff73d04 commit f949654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda-handler.js
Original file line number Diff line number Diff line change
@@ -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 ) {
Expand Down

0 comments on commit f949654

Please sign in to comment.