Skip to content

Instantly share code, notes, and snippets.

View tigaszzz's full-sized avatar

Tiago Almeida tigaszzz

View GitHub Profile
### Keybase proof
I hereby claim:
* I am tigaszzz on github.
* I am tigaszzz (https://keybase.io/tigaszzz) on keybase.
* I have a public key ASAMxvY995avXPsJsxXx78lYAScYLjL8HvhyA2G2PYP8WQo
To claim this, I am signing this object:
@tigaszzz
tigaszzz / gist:114f24f5816f33201ac7
Created October 21, 2015 15:46 — forked from grvhi/gist:fbda7c0afed03ae1ef8c
AWS Lambda Function to Trigger ElasticTranscoder Job on S3 Upload
console.log('Checking newly uploaded file');
var AWS = require('aws-sdk');
var s3 = new AWS.S3({apiVersion: '2006-03-01'});
var eltr = new AWS.ElasticTranscoder({
apiVersion: '2012-09-25',
region: 'us-east-1'
});
// ID of pipeline
var pipelineId = 'myID';
// ID of ET's web output preset