Create Environment
Run the below command to create environment
For Odin 1.x.x:
odin create env --name {envName}
Example:
odin create env --name dev-2511
Expected output:
Environment provisioning initiated
Provisioning started for [dev-2511]
Provisioning complete. Env [dev-2511] created successfully.
For Odin 2.0 and above:
odin create env --name {envName} --provisioning-type {provisioningType} --accounts {accounts}
provisioningType: This specifies the type of env. example- dev, load, prod, etc.
accounts: This specifies the cloud account where the resources will be provisioned, user may provide multiple comma separated accounts. Currently supported accounts:
staging
staging_gcp
load
load_gcp
prod
hulk_nonprod_gcp
hulk_prod_gcp
hulk-prod
auth-nv
auth-bom
prod_gcp
Example
odin create env --name dev-2511 --accounts staging_gcp,staging --provisioning-type stag
Expected output:
INFO[2025-05-20 14:56:27] Generated trace ID: 47a6c293-d885-401f-a248-049a6404d727
INFO[2025-05-20 14:56:28] Creating environment...
INFO[2025-05-20 14:56:34] Status: RUNNING
envName
must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')
Last updated