eb-create-environment
Tired of byzantine EB environment and RDS instance creation workflows? Use this tool to set up Elastic Beanstalk environments and linked RDS instances simply, without having to rely on the AWS interface. The tool ships with sensible defaults, which may be overridden if desired.
Instalation
pip install eb-create-environment
Usage
usage: eb-create-environment [-h] [-c CONFIG] [-a APPLICATION_NAME]
[-e ENVIRONMENT_NAME] [-p PROFILE] [-r REGION]
[--db-only]
Set up linked EB and RDS instances
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Specify a custom config file
-a APPLICATION_NAME, --application_name APPLICATION_NAME
Elastic Beanstalk application name
-e ENVIRONMENT_NAME, --environment_name ENVIRONMENT_NAME
Elastic Beanstalk environment name
-p PROFILE, --profile PROFILE
Specify an AWS profile from your credential file
-r REGION, --region REGION
Specify an AWS region region
--db-only Skip setup of application and environment. Requires
application and environment to exist already.
--print-default-config
Print default config and exit
- Override default configs by createing a custom config yaml file and specify its path using the
--configoption (see Customizing the config file) - Print defaults with the
--print-default-configoption - Elastic beanstalk configuration (application name, authentication profile name, default region) are read from the
.elasticbeanstalk/config.ymlfile if it exists. Otherwise, the user will be prompted for these values and the config file will be created. - If arguments are missing the user will be prompted for required inputs.
- If the desired environment already exists, skip environment setup and create an associated RDS instance using the
--db-onlyoption. - If
--db-onlyis not selected,eb-create-environmentwill create an EB environment with the specified parameters, create a database in the same VPC, create the necessary security groups, and set theDATABASE_URLenvironment variable on the EB environment.
Customizing the config file
To get a new config file, eb-create-environment --print-default-config > .elasticbeanstalk/ENVIRONMENT_NAME.yml
The default config file is eb_create_environment/default_config.yml. eb-create-environment will use this file as it's config file if no --config option is passed.
You can override this default by copying this file, modifying its values, and specifying its path using the --config option. It is recommended that you include these files in your codebase in a directory called .elasticbeanstalk.
Params under the ElasticBeanstalk top-level key are used in eb_create_environment/eb_setup.py while params under the RDS top-level key are used in eb_create_environment/database.py.
Metadata
Release files for eb-create-environment 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| eb_create_environment-0.2.0.tar.gz | 12.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eb_create_environment-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.3 kB
Release files / eb_create_environment-0.2.0.tar.gz
| Download URL | eb_create_environment-0.2.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1643518f83984fbe645364b2b878ab36746915b33aa41ea78d6adf968a6a897e
|
|
BLAKE2b-256 checksum How to use checksums |
bb3d86ffbca914c1404eb9dbb8a821c74ff6ce475d773cf7a392a64df0be322e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / eb_create_environment-0.2.0-py3-none-any.whl
| Download URL | eb_create_environment-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04a7ea17bcabd8e7a473595b7e4b82830d547aa306b233928ede2ce262f04bb7
|
|
BLAKE2b-256 checksum How to use checksums |
b1994e873164f1c029617eb37ca525624d5f26c9bd5cb739432e397941efb9eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for eb-create-environment 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.