gulp-aws-eb-environment
v1.0.5
Published
Plugin to change the environment variables on Elastic Beanstalk (AWS)
Downloads
3
Readme
gulp-aws-eb-environment
Environment variables on Elastic Beanstalk
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
- Install package via
npm
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'
},
// Find the environment by canonical name inside of `application.name`
cname: 'eb-cname.elasticbeanstalk.com',
// environment variable
environment: {
name: 'TEST',
value: '123'
}
});
});
License
- Made of dawn with :coffee:
- By Cauê Alves
- MIT