CLI tool for creating RE clusters with env0.
-
Install Python3 and pip
-
Install the package using pip:
pip install git+https://github.com/redis-developer/cae-re-env0.git
Define the following environment variables:
export ENV0_API_KEY = "..."
export ENV0_API_KEY_SECRET = "..."
export ENV0_PROJECT_ID = "..."
- Define all required template parameters in the
params.json
file. - Run the following command:
re-env0 create-env NAME_HERE ENV0_TEMPLATE_ID params.json
- The command will same the env0 output file as
env_output.json
Once the environment is created, you can create BDBs.
- Define all required BDBs parameters in the
bdbs.json
file. - Run the following command:
re-env create-bdbs env_output.json bdbs.json
- The command will save the created endpoints to
endpoints.json
re-env upload-certificate [OPTIONS] ENV_CONFIG_PATH CERTIFICATE_PATH
Arguments:
ENV_CONFIG_PATH
: [required]CERTIFICATE_PATH
: [required]
Options:
--private-key-path TEXT
--certificate-type [proxy|api|cm|ldap_client|metrics_exporter|syncer]
: [default: proxy]--cluster-index INTEGER
: [default: 0]