Pass dynamic environment-specific configurations

This section describes how to pass environment configurations.

Overview

You can pass dynamic environment-specific configurations to the container during a deployment. The Score Specification enables a special environment resource type to be used to support such use cases.

Environment configurations are set within the container section of your Score Specification file. These configurations act as environment variables when you’re deploying a Workload.

Values for those variables can be either hard coded (not recommended) or sourced from the resources properties through substitutions (recommended).

For example, ${resources.my-db.host}. The Score Specification supports declaring environment variables in a configurations files or as a shell value.

For more information, see Environment specific configuration


Pass dynamic environment-specific configurations in score-compose

This section describes how to set environment variables for score-compose.

Pass dynamic environment-specific configurations in score-helm

This section describes how to pass dynamic environment-specific configuration to the Workload during deployment.

Pass dynamic environment-specific configurations in score-humanitec

This section describes how to pass dynamic environment-specific configuration to the Workload during deployment.