Odin
  • Introduction
  • Why Odin?
  • Key Concepts
    • Environment
      • Environment Type
    • Provisioning
      • Provisioning Config for Component Types
    • Component
      • Available Component Types
      • Component Type reference
        • Optimus Components
          • Aerospike [6.3.0.7-1.0.0]
    • Service
      • Know Your Service Definition
    • Versioning
      • Clearing the Confusion: A Simplified Guide to Artifact, Component, and Service Versions
    • Service Sets
    • Labels
  • Reference
    • CLI reference
  • Onboard Your Service
    • Installation
    • Configure
    • Odin -h
    • Getting Started
    • Create Environment
      • Operations on Environment
    • Service Definition
    • Provisioning Config
    • Deploy Service
    • Release Service
    • Optimus Datastore Operations
      • How to use Optimus Datastore in my service?
      • RDS Operations
      • Aerospike Operations
      • Kafka Operations
    • Operating Service & Components
      • Redeploy
        • In Place Deployment
        • Blue Green Deployment
      • Rolling Restart
      • Adding & removing components
      • Revert a deployment for application component
      • Downscaling a Passive Stack
      • Updating the no. of stacks of application component
    • Dev <> QA iteration
    • Frequently Asked Questions
    • Deploy Concrete Service
    • Undeploy Service
    • Delete Environment
    • Appendix
  • How To
    • Define error threshold for canary deployment
    • Add or Remove a component in an already deployed service
    • Integrate mono-repo(cronjobs) with Odin
    • Deploy crontab with Odin
    • Integrate Data pipeline with Odin
    • Push logs to log central
    • Build artifacts for multi module applications
    • Load test with Odin
    • Track Deployments against Commit Ids
    • Deploy Service on Production - Dream11
    • How and when images are created
    • Check logs for deployed infrastructure - Dream11
    • Onboard Stepfunction as a component
    • Onboard Serverless as a component
    • Login to Kubernetes clusters
  • Release Notes
    • 1.2.0-beta.2 - 11 August, 2022
    • Odin October Release
    • Odin 1.2.0 - Nov 9th 2022
    • Odin February Release
Powered by GitBook
On this page
Export as PDF
  1. Onboard Your Service

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])?')

PreviousGetting StartedNextOperations on Environment

Last updated 3 days ago