Skip to content

Instantly share code, notes, and snippets.

@pyr-revs
pyr-revs / launch-chainer_via_aws_lambda.js
Created October 6, 2015 09:15
Launch Chainer via AWS Lambda
Launch Chainer via AWS Lambda
console.log('Launch-Chainer: Start');
var ec2Region = 'us-east-1';
var s3Region = 'ap-northeast-1';
var snsRegion = 'ap-northeast-1';
var s3Bucket = 'mybucket';
@pyr-revs
pyr-revs / launch-xgboost_via_aws_lambda.js
Created October 5, 2015 17:34
Launch xgboost via AWS Lambda
console.log('Loading function');
var ec2Region = 'ap-northeast-1';
var s3Region = ec2Region;
var snsRegion = ec2Region;
var s3Bucket = 'mybucket';
var shellScriptS3Key = 'sh/launch_xgboost.sh';
var shellScriptS3Path = 's3://' + s3Bucket + '/' + shellScriptS3Key;