AWS Elastic Beanstalk automation. A work in progress. This is the node version of Ruby Beanstalkify
npm install beanstalkify --save
var Application = require('beanstalk');
var application = new Application(
{
accessKeyId: 'XXX',
secretAccessKey: 'XXX',
region: 'ap-southeast-2'
}
);
application.deploy(
{
archiveFilePath: 'PATH TO ZIP FILE',
environmentName: 'CNAME',
awsStackName: '64bit Amazon Linux 2015.03 v2.0.0 running Node.js',
beanstalkConfig: [
Beanstalk options
....
]
}
).then(function(data){
console.log(data); # {app_name: 'test-website', app_version: 'foo', env_name: 'test-website-prod'}
});
npm test
- Use
process.stdout.write
instead ofconsole.log
to output dots while waiting
- Return environment details from promise chain instead of writing it to a JSON file