This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const DATA_API = 'https://data.example.com/api'; | |
const DATA_API_KEY = process.env.API_KEY; | |
exports.search = function(event, context, callback) { | |
const targets = [ 'ID1', 'ID2', 'ID3' ]; | |
callback(null, targets); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aws = require('aws-sdk'); | |
var elastictranscoder = new aws.ElasticTranscoder(); | |
function basename(path) { | |
return path.split('/').reverse()[0].split('.')[0]; | |
} | |
exports.handler = (event, context) => { | |
console.log('Received event:', JSON.stringify(event, null, 2)); | |
var key = event.Records[0].s3.object.key; |
NewerOlder