Manage Environments
An environment is a grouping of clusters and assets contained within an enterprise. Environments are a convenient way to group workloads by team, like dev, prod, and demos.
What you'll get
- Create, list, and manage environments; associate clusters with environments
- Group cabinets by environment for config hierarchy and access
Prerequisites
- Codiac account and CLI installed and logged in
- An enterprise (or use a Hosted Sandbox)
Usage and Options
Includes the given cluster within the given environment. DOES NOT modify any infrastructure; only creates an association within Codiac.
Create an environment
-
Use
codiac environment createto create an environment. -
Follow the prompts to set the tenant, environment name, and cluster. Example:
List environments
- Use
codiac environment listto list all available environments.
Attach a cluster to an environment
This command creates a link between a cluster and an environment within Codiac. It does not modify any infrastructure.
-
Use
codiac environment cluster attachto link a cluster to an environment. -
Follow the prompts to select the environment and the cluster.
Detach a cluster from an environment
This command removes the link between a cluster and an environment within Codiac. It does not modify any infrastructure.
-
Use
codiac environment cluster detachto unlink a cluster from an environment. -
Follow the prompts to select the environment. If more than one cluster is attached to the environment, you will also be prompted to choose the cluster you want to detach.
What's next
- Manage cabinets – Create cabinets in an environment
- Manage enterprises – Create enterprises
- Manage clusters – Attach clusters to environments
- Dynamic configuration – Config by environment