Table of Contents
< All Topics
Print

Config Section

Config Section

Defines deployable environments and associated values for those deployments.

Each environment is named and then acts as dictionary lookup to find the values of variables else where within the configuration

Identifier

config

Structure

<environment_name>: Environment identifier. This will be passed to Orca later when deploying the system

Followed by: Dictionary of dictionaries and/or values. Here you identify variable names to be referenced else where in the configuration file.

Example

Definition Example

config:
  prod:
    shake-time: 120
    bead-incubation-time: 7200
  test:
    shake-time: 0
    bead-incubation-time: 0

Variable Referencing Example

methods:    
  incubate-10-min:
    actions:
      - shaker-1:
          command: shake
          inputs: [plate-1]
          shake-time: ${config:${opt:stage}.shake-time}

Example Explanation

When the configuration file is run with the stage option set to “prod”, the method will use the shake-time value from the “prod” configuration, which is 120. If the configuration file is run with the stage option set to “test”, it will use the shake-time value from the “test” configuration, which is 0.

The method looks up the configuration module, finds the stage option value, and retrieves the corresponding shake-time value. This allows for flexible and dynamic adjustment of parameters based on the specified deployment stage.