Simple CLI tool for ElasticBeanstalk with Docker
Project description
Elastic Beanstalk Intelligence, Simple CLI tool for ElasticBeanstalk with Docker.
Deploying apps more intuitively
Without git integration
Switch-able Dockerrun.aws.json
Switch-able docker-compose.yml
Switch-able .ebextensions/
Install
pip install ebi
Requires Python2.7 or 3.5
Usage
deploy
To deploy app, just type it on project root:
$ ebi deploy <app_name> <env_name>
This will
Create zip file including Dockerrun.aws.json and .ebextensions or docker-compose.yml and .ebextensions
Uploading zip to S3 as same directory as awsebcli.
Deploying app (by calling eb deploy with uploaded –version)
options:
--version: version label for app. default is timestamp.
--prefix: version prefix for app. It is added to timestamp.
--description: description for this version.
--dockerrun: File path used as Dockerrun.aws.json.
--docker-compose: File path used as docker-compose.yml.
--ebext: Directory path used as .ebextensions/
--profile: Configured profile for AWS.
--region: region for AWS.
create
To create app, just type it on project root:
$ ebi create <app_name> <env_name> <cname_prefix>
This will
Create zip file including Dockerrun.aws.json and .ebextensions or docker-compose.yml and .ebextensions
Uploading zip to S3 as same directory as awsebcli.
Creating app (by calling eb create with uploaded –version)
options:
--version: version label for app. default is timestamp.
--prefix: version prefix for app. It is added to timestamp.
--description: description for this version.
--dockerrun: File path used as Dockerrun.aws.json.
--docker-compose: File path used as docker-compose.yml.
--ebext: Directory path used as .ebextensions/
--profile: Configured profile for AWS.
--region: region for AWS.
--cfg: Configuration template to use.
bgdeploy
To Blue-Green deploye app, just type it on project root:
$ ebi bgdeploy <app_name> <blue_env_name> <green_env_name> <primary_env_cname>
This will
Create zip file including Dockerrun.aws.json and .ebextensions or docker-compose.yml and .ebextensions
Uploading zip to S3 as same directory as awsebcli.
Deploy new version to secondary environment which doen’t have primary_env_cname (by calling eb deploy with uploaded –version)
Apply primary cname for deployed (secondary) environment
+-------+ +------+ | green | | blue | +-------+ +------+ pri.elastic...com sec.elastic...com ^ | 3. deploy!
options:
--noswap: Skip swapping to just deploy secondary environment.
--version: version label for app. default is timestamp.
--prefix: version prefix for app. It is added to timestamp.
--description: description for this version.
--dockerrun: File path used as Dockerrun.aws.json.
--docker-compose: File path used as docker-compose.yml.
--ebext: Directory path used as .ebextensions/
--profile: Configured profile for AWS.
--region: region for AWS.
--capacity: Increase the number of desired instances, the minimum size, and the maximum size of the standby environment to the same as the primary environment.
clonedeploy
To deploy app with cloning, just type it on project root:
$ ebi clonedeploy <app_name> <env_name> <green_env_name> <cname_prefix>
This will
Create clone of master environment for next version environment.
Create zip file including Dockerrun.aws.json and .ebextensions or docker-compose.yml and .ebextensions
Uploading zip to S3 as same directory as awsebcli.
Deploy new version to next version (by calling eb deploy with uploaded –version)
Apply master cname for deployed (next version) environment
+--------+ +----------+ | master | =1.Clone=> | next ver | +--------+ +----------+ master.elastic...com master-<timestamp>.elastic...com ^ | 4. deploy!
--noswap: Skip swapping to just deploy secondary environment.
--version: version label for app. default is timestamp.
--prefix: version prefix for app. It is added to timestamp.
--description: description for this version.
--dockerrun: File path used as Dockerrun.aws.json.
--docker-compose: File path used as docker-compose.yml.
--ebext: Directory path used as .ebextensions/
--profile: Configured profile for AWS.
--region: region for AWS.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ebi-0.12.0.tar.gz
.
File metadata
- Download URL: ebi-0.12.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f259aad316094d95b851b4ccb922bebcbcc883ad4f1c10eecf7a3985f2c80aa |
|
MD5 | f41ea1a975a0fa21875f167883034e6e |
|
BLAKE2b-256 | bc68b9724efa8170feffd0a12bc47e3bdd46444c0fe56652a13486efb52e89e7 |
File details
Details for the file ebi-0.12.0-py3-none-any.whl
.
File metadata
- Download URL: ebi-0.12.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f8b30eb577521c04659adfb869120086d3aa384edfd43c226c6b0e86b6c9bd |
|
MD5 | 46cabfc19d8a2aeadb0416f62a8446fb |
|
BLAKE2b-256 | aa1127afbd9eab76801fca39fe78509bb86fb812bf62940470ce93b363797909 |