gulp-aws-eb-environment
The idea is that we may be able to manipulate the environment variables on EB
. I believe this plugin can help in some workflows and pipelines of continuous integration.
Installation
npm install gulp-aws-eb-environment --save-dev
Usage
'use strict';
var ebEnvironment = require('gulp-aws-eb-environment');
gulp.task('aws:eb:setEnv', function() {
var envs = ebEnvironment.create({
region: process.env['AWS_REGION'],
accessKeyId: process.env['AWS_ACCESS_KEY_ID'],
secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY']
});
return envs.setEnv({
application: {
name: 'eb-application-name'
},
cname: 'eb-cname.elasticbeanstalk.com',
environment: {
name: 'TEST',
value: '123'
}
});
});
License