Skip to content

Instantly share code, notes, and snippets.

@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