This file contains 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 logger = require('./logger'), | |
AWS = require('aws-sdk'), | |
CronJob = require('cron').CronJob; | |
AWS.config.update({region: 'us-east-1'}); // change to your region | |
var opts = { | |
credentials: new AWS.EC2MetadataCredentials()// default to use the credentials for the ec2 instance | |
}; | |
var elasticbeanstalk = new AWS.ElasticBeanstalk(opts); |