LogoLogo
Bonsai (0.13) DocsGitHubDiscord CommunityGarden Enterprise
Docs Edge
Docs Edge
  • Welcome to Garden!
  • Overview
    • What is Garden
    • Use Cases
      • Isolated On-Demand Preview Environments
      • Fast, Portable CI Pipelines that Run Anywhere
      • Shift Testing Left
      • Local Development With Remote Clusters
      • Jumpstart your Internal Developer Platform
    • Garden vs Other Tools
  • Getting Started
    • Quickstart
    • Garden Basics
    • Next Steps
  • Tutorials
    • Your First Project
      • 1. Create a Garden Project
      • 2. Pick a Kubernetes Plugin
      • 3. Add Actions
      • 4. Add Tests
      • 5. Code Syncing (Hot Reload)
      • 6. Next Steps
    • Setting up a Kubernetes cluster
      • 1. Create a Cluster
        • AWS
        • GCP
        • Azure
      • 2. Configure Container Registry
        • AWS
        • GCP
        • Azure
        • Docker Hub
      • 3. Set Up Ingress, TLS and DNS
      • 4. Configure the Provider
  • Using Garden With
    • Containers
      • Using Remote Container Builder
      • Building Containers
    • Kubernetes
      • Using Remote Kubernetes
      • Using Local Kubernetes
      • Deploying K8s Resources
      • Installing Helm charts
      • Running Tests and Tasks
    • Terraform
      • Using Terraform
      • Applying Terrform Stacks
    • Pulumi
      • Using Pulumi
      • Applying Pulumi Stacks
    • Local Scripts
  • Features
    • Remote Container Builder
    • Team Caching
    • Variables and Templating
    • Config Templates
    • Workflows
    • Code Synchronization
    • Custom Commands
    • Remote Sources
  • Guides
    • Connecting a Project
    • Environments and Namespaces
    • Installing Garden
    • Including/Excluding files
    • Installing Local Kubernetes
    • Migrating from Docker Compose to Garden
    • Using the CLI
    • Using Garden in CircleCI
    • Minimal RBAC Configuration for Development Clusters
    • Deploying to Production
    • Using a Registry Mirror
    • Local mode
  • Reference
    • Providers
      • container
      • ephemeral-kubernetes
      • exec
      • jib
      • kubernetes
      • local-kubernetes
      • otel-collector
      • pulumi
      • terraform
    • Action Types
      • Build
        • container Build
        • exec Build
        • jib-container Build
      • Deploy
        • configmap Deploy
        • container Deploy
        • exec Deploy
        • helm Deploy
        • kubernetes Deploy
        • persistentvolumeclaim Deploy
        • pulumi Deploy
        • terraform Deploy
      • Run
        • container Run
        • exec Run
        • helm-pod Run
        • kubernetes-exec Run
        • kubernetes-pod Run
      • Test
        • container Test
        • exec Test
        • helm-pod Test
        • kubernetes-exec Test
        • kubernetes-pod Test
    • Template Strings
      • Project template context
      • Environment template context
      • Provider template context
      • Action (all fields) template context
      • Action spec template context
      • Module template context
      • Remote Source template context
      • Project Output template context
      • Custom Command template context
      • Workflow template context
      • Template Helper Functions
    • Commands
    • Project Configuration
    • ConfigTemplate Reference
    • RenderTemplate Reference
    • Workflow Configuration
    • Garden Containers on Docker Hub
    • Glossary
    • Module Template Configuration
    • Module Types
      • configmap
      • container
      • exec
      • helm
      • jib-container
      • kubernetes
      • persistentvolumeclaim
      • pulumi
      • templated
      • terraform
  • Misc
    • FAQ
    • Troubleshooting
    • Telemetry
    • How Organizations Adopt Garden
    • New Garden Cloud Version
    • Migrating to Bonsai
  • Contributing to Garden
    • Contributor Covenant Code of Conduct
    • Contributing to the Docs
    • Setting up Your Developer Environment
    • Developing Garden
    • Config Resolution
    • Graph Execution
Powered by GitBook
On this page
  • ${local.*}
  • ${local.artifactsPath}
  • ${local.env.*}
  • ${local.env.<env-var-name>}
  • ${local.arch}
  • ${local.platform}
  • ${local.projectPath}
  • ${local.username}
  • ${local.usernameLowerCase}
  • ${command.*}
  • ${command.name}
  • ${command.params.*}
  • ${command.params.<name>}
  • ${datetime.*}
  • ${datetime.now}
  • ${datetime.today}
  • ${datetime.timestamp}
  • ${project.*}
  • ${project.name}
  • ${git.*}
  • ${git.branch}
  • ${git.commitHash}
  • ${git.originUrl}
  • ${secrets.<secret-name>}
  • ${variables.*}
  • ${variables.<variable-name>}
  • ${var.*}
  • ${var.<name>}
  • ${environment.*}
  • ${environment.name}
  • ${environment.fullName}
  • ${environment.namespace}
  • ${providers.*}
  • ${providers.<provider-name>.config.*}
  • ${providers.<provider-name>.config.<config-key>}
  • ${providers.<provider-name>.outputs.*}
  • ${providers.<provider-name>.outputs.<output-key>}
  • ${modules.*}
  • ${modules.<module-name>.buildPath}
  • ${modules.<module-name>.name}
  • ${modules.<module-name>.path}
  • ${modules.<module-name>.outputs.*}
  • ${modules.<module-name>.outputs.<output-name>}
  • ${modules.<module-name>.var.*}
  • ${modules.<module-name>.var.<variable-name>}
  • ${modules.<module-name>.version}
  • ${runtime.*}
  • ${runtime.build.*}
  • ${runtime.build.<action-name>.name}
  • ${runtime.build.<action-name>.disabled}
  • ${runtime.build.<action-name>.buildPath}
  • ${runtime.build.<action-name>.sourcePath}
  • ${runtime.build.<action-name>.mode}
  • ${runtime.build.<action-name>.var.*}
  • ${runtime.build.<action-name>.var.<name>}
  • ${runtime.build.<action-name>.outputs.*}
  • ${runtime.build.<action-name>.outputs.<output-name>}
  • ${runtime.build.<action-name>.version}
  • ${runtime.deploy.*}
  • ${runtime.deploy.<action-name>.name}
  • ${runtime.deploy.<action-name>.disabled}
  • ${runtime.deploy.<action-name>.buildPath}
  • ${runtime.deploy.<action-name>.sourcePath}
  • ${runtime.deploy.<action-name>.mode}
  • ${runtime.deploy.<action-name>.var.*}
  • ${runtime.deploy.<action-name>.var.<name>}
  • ${runtime.deploy.<action-name>.outputs.*}
  • ${runtime.deploy.<action-name>.outputs.<output-name>}
  • ${runtime.deploy.<action-name>.version}
  • ${runtime.run.*}
  • ${runtime.run.<action-name>.name}
  • ${runtime.run.<action-name>.disabled}
  • ${runtime.run.<action-name>.buildPath}
  • ${runtime.run.<action-name>.sourcePath}
  • ${runtime.run.<action-name>.mode}
  • ${runtime.run.<action-name>.var.*}
  • ${runtime.run.<action-name>.var.<name>}
  • ${runtime.run.<action-name>.outputs.*}
  • ${runtime.run.<action-name>.outputs.<output-name>}
  • ${runtime.run.<action-name>.version}
  • ${runtime.test.*}
  • ${runtime.test.<action-name>.name}
  • ${runtime.test.<action-name>.disabled}
  • ${runtime.test.<action-name>.buildPath}
  • ${runtime.test.<action-name>.sourcePath}
  • ${runtime.test.<action-name>.mode}
  • ${runtime.test.<action-name>.var.*}
  • ${runtime.test.<action-name>.var.<name>}
  • ${runtime.test.<action-name>.outputs.*}
  • ${runtime.test.<action-name>.outputs.<output-name>}
  • ${runtime.test.<action-name>.version}
  • ${runtime.services.*}
  • ${runtime.services.<action-name>.name}
  • ${runtime.services.<action-name>.disabled}
  • ${runtime.services.<action-name>.buildPath}
  • ${runtime.services.<action-name>.sourcePath}
  • ${runtime.services.<action-name>.mode}
  • ${runtime.services.<action-name>.var.*}
  • ${runtime.services.<action-name>.var.<name>}
  • ${runtime.services.<action-name>.outputs.*}
  • ${runtime.services.<action-name>.outputs.<output-name>}
  • ${runtime.services.<action-name>.version}
  • ${runtime.tasks.*}
  • ${runtime.tasks.<action-name>.name}
  • ${runtime.tasks.<action-name>.disabled}
  • ${runtime.tasks.<action-name>.buildPath}
  • ${runtime.tasks.<action-name>.sourcePath}
  • ${runtime.tasks.<action-name>.mode}
  • ${runtime.tasks.<action-name>.var.*}
  • ${runtime.tasks.<action-name>.var.<name>}
  • ${runtime.tasks.<action-name>.outputs.*}
  • ${runtime.tasks.<action-name>.outputs.<output-name>}
  • ${runtime.tasks.<action-name>.version}
  • ${actions.*}
  • ${actions.build.*}
  • ${actions.build.<action-name>.name}
  • ${actions.build.<action-name>.disabled}
  • ${actions.build.<action-name>.buildPath}
  • ${actions.build.<action-name>.sourcePath}
  • ${actions.build.<action-name>.mode}
  • ${actions.build.<action-name>.var.*}
  • ${actions.build.<action-name>.var.<name>}
  • ${actions.build.<action-name>.outputs.*}
  • ${actions.build.<action-name>.outputs.<output-name>}
  • ${actions.build.<action-name>.version}
  • ${actions.deploy.*}
  • ${actions.deploy.<action-name>.name}
  • ${actions.deploy.<action-name>.disabled}
  • ${actions.deploy.<action-name>.buildPath}
  • ${actions.deploy.<action-name>.sourcePath}
  • ${actions.deploy.<action-name>.mode}
  • ${actions.deploy.<action-name>.var.*}
  • ${actions.deploy.<action-name>.var.<name>}
  • ${actions.deploy.<action-name>.outputs.*}
  • ${actions.deploy.<action-name>.outputs.<output-name>}
  • ${actions.deploy.<action-name>.version}
  • ${actions.run.*}
  • ${actions.run.<action-name>.name}
  • ${actions.run.<action-name>.disabled}
  • ${actions.run.<action-name>.buildPath}
  • ${actions.run.<action-name>.sourcePath}
  • ${actions.run.<action-name>.mode}
  • ${actions.run.<action-name>.var.*}
  • ${actions.run.<action-name>.var.<name>}
  • ${actions.run.<action-name>.outputs.*}
  • ${actions.run.<action-name>.outputs.<output-name>}
  • ${actions.run.<action-name>.version}
  • ${actions.test.*}
  • ${actions.test.<action-name>.name}
  • ${actions.test.<action-name>.disabled}
  • ${actions.test.<action-name>.buildPath}
  • ${actions.test.<action-name>.sourcePath}
  • ${actions.test.<action-name>.mode}
  • ${actions.test.<action-name>.var.*}
  • ${actions.test.<action-name>.var.<name>}
  • ${actions.test.<action-name>.outputs.*}
  • ${actions.test.<action-name>.outputs.<output-name>}
  • ${actions.test.<action-name>.version}
  • ${actions.services.*}
  • ${actions.services.<action-name>.name}
  • ${actions.services.<action-name>.disabled}
  • ${actions.services.<action-name>.buildPath}
  • ${actions.services.<action-name>.sourcePath}
  • ${actions.services.<action-name>.mode}
  • ${actions.services.<action-name>.var.*}
  • ${actions.services.<action-name>.var.<name>}
  • ${actions.services.<action-name>.outputs.*}
  • ${actions.services.<action-name>.outputs.<output-name>}
  • ${actions.services.<action-name>.version}
  • ${actions.tasks.*}
  • ${actions.tasks.<action-name>.name}
  • ${actions.tasks.<action-name>.disabled}
  • ${actions.tasks.<action-name>.buildPath}
  • ${actions.tasks.<action-name>.sourcePath}
  • ${actions.tasks.<action-name>.mode}
  • ${actions.tasks.<action-name>.var.*}
  • ${actions.tasks.<action-name>.var.<name>}
  • ${actions.tasks.<action-name>.outputs.*}
  • ${actions.tasks.<action-name>.outputs.<output-name>}
  • ${actions.tasks.<action-name>.version}
  • ${inputs.*}
  • ${inputs.<input-key>}
  • ${parent.*}
  • ${parent.name}
  • ${template.*}
  • ${template.name}
  • ${this.*}
  • ${this.name}
  • ${this.disabled}
  • ${this.buildPath}
  • ${this.sourcePath}
  • ${this.mode}
  • ${this.var.*}
  • ${this.var.<name>}

Was this helpful?

  1. Reference
  2. Template Strings

Action spec template context

PreviousAction (all fields) template contextNextModule template context

Last updated 1 month ago

Was this helpful?

The below keys are available in template strings for the spec field in action configs. Please see for the fields available for the built-in fields in actions configs, which allow somewhat more limited templating.

Actions can reference outputs defined by providers, via the ${providers.<provider-name>.outputs} key. For details on which outputs are available for a given provider, please refer to the docs for the provider in question, and look for the Outputs section.

Action specs can also reference outputs defined by modules and by other actions, via the ${modules.<module-name>.outputs} and ${actions.<action-kind>.<action-name>.outputs} keys.

For details on which outputs are available for a given action type, please refer to the docs for the type in question, and look for the Outputs section.

${local.*}

Context variables that are specific to the currently running environment/machine.

Type

object

${local.artifactsPath}

The absolute path to the directory where exported artifacts from test and task runs are stored.

Type

string

Example:

my-variable: ${local.artifactsPath}

${local.env.*}

A map of all local environment variables (see https://nodejs.org/api/process.html#process_process_env).

Type

object

${local.env.<env-var-name>}

The environment variable value.

Type

string

${local.arch}

A string indicating the architecture that the framework is running on (see https://nodejs.org/api/process.html#process_process_arch)

Type

string

Example:

my-variable: ${local.arch}

${local.platform}

A string indicating the platform that the framework is running on (see https://nodejs.org/api/process.html#process_process_platform)

Type

string

Example:

my-variable: ${local.platform}

${local.projectPath}

The absolute path to the project root directory.

Type

string

Example:

my-variable: ${local.projectPath}

${local.username}

The current username (as resolved by https://github.com/sindresorhus/username).

Type

string

Example:

my-variable: ${local.username}

${local.usernameLowerCase}

The current username (as resolved by https://github.com/sindresorhus/username), with any upper case characters converted to lower case.

Type

string

Example:

my-variable: ${local.usernameLowerCase}

${command.*}

Information about the currently running command and its arguments.

Type

object

${command.name}

The currently running Garden CLI command, without positional arguments or option flags. This can be handy to e.g. change some variables based on whether you're running garden test or some other specific command.

Note that this will currently always resolve to "workflow" when running Workflows, as opposed to individual workflow step commands. This may be revisited at a later time, but currently all configuration is resolved once for all workflow steps.

Type

string

Example:

my-variable: ${command.name}

${command.params.*}

A map of all parameters set when calling the current command. This includes both positional arguments and option flags, and includes any default values set by the framework or specific command. This can be powerful if used right, but do take care since different parameters are only available in certain commands, some have array values etc.

Option values can be referenced by the option's default name (e.g. sync-mode) or its alias (e.g. sync) if one is defined for that option.

Type

object

${command.params.<name>}

Type

any

${datetime.*}

Information about the date/time at template resolution time.

Type

object

${datetime.now}

The current UTC date and time, at time of template resolution, in ISO-8601 format.

Type

string

Example:

my-variable: ${datetime.now}

${datetime.today}

The current UTC date, at time of template resolution, in ISO-8601 format.

Type

string

Example:

my-variable: ${datetime.today}

${datetime.timestamp}

The current UTC Unix timestamp (in seconds), at time of template resolution.

Type

string

Example:

my-variable: ${datetime.timestamp}

${project.*}

Information about the Garden project.

Type

object

${project.name}

The name of the Garden project.

Type

string

Example:

my-variable: ${project.name}

${git.*}

Information about the current state of the project's Git repository.

Type

object

${git.branch}

The current Git branch, if available. Resolves to an empty string if HEAD is in a detached state (e.g. when rebasing), or if the repository has no commits.

When using remote sources, the branch used is that of the project/top-level repository (the one that contains the project configuration).

The branch is resolved at the start of the Garden command's execution, and is not updated if the current branch changes during the command's execution (which could happen, for example, when using watch-mode commands).

Type

string

Example:

my-variable: ${git.branch}

${git.commitHash}

The current Git commit hash, if available. Resolves to an empty string if the repository has no commits.

When using remote sources, the hash used is that of the project/top-level repository (the one that contains the project configuration).

The hash is resolved at the start of the Garden command's execution, and is not updated if the current commit changes during the command's execution (which could happen, for example, when using watch-mode commands).

Type

string

Example:

my-variable: ${git.commitHash}

${git.originUrl}

The remote origin URL of the project Git repository.

When using remote sources, the URL is that of the project/top-level repository (the one that contains the project configuration).

Type

string

Example:

my-variable: ${git.originUrl}

${secrets.<secret-name>}

The secret's value.

Type

string

${variables.*}

A map of all variables defined in the project configuration, including environment-specific variables.

Type
Default

object

{}

${variables.<variable-name>}

Type

string | number | boolean | link | array[link]

${var.*}

Alias for the variables field.

Type
Default

object

{}

${var.<name>}

Number, string or boolean

Type

string | number | boolean

${environment.*}

Information about the environment that Garden is running against.

Type

object

${environment.name}

The name of the environment Garden is running against, excluding the namespace.

Type

string

Example:

my-variable: ${environment.name}

${environment.fullName}

The full name of the environment Garden is running against, including the namespace.

Type

string

Example:

my-variable: ${environment.fullName}

${environment.namespace}

The currently active namespace (if any).

Type

string

Example:

my-variable: ${environment.namespace}

${providers.*}

Retrieve information about providers that are defined in the project.

Type
Default

object

{}

${providers.<provider-name>.config.*}

The resolved configuration for the provider.

Type

object

${providers.<provider-name>.config.<config-key>}

Type

string | number | boolean

${providers.<provider-name>.outputs.*}

The outputs defined by the provider (see individual plugin docs for details).

Type
Default

object

{}

${providers.<provider-name>.outputs.<output-key>}

Type

string | number | boolean

${modules.*}

Retrieve information about modules that are defined in the project.

Type
Default

object

{}

${modules.<module-name>.buildPath}

The build path of the module.

Type

string

Example:

my-variable: ${modules.<module-name>.buildPath}

${modules.<module-name>.name}

The name of the module.

Type

string

${modules.<module-name>.path}

The source path of the module.

Type

string

Example:

my-variable: ${modules.<module-name>.path}

${modules.<module-name>.outputs.*}

Type
Default

object

{}

${modules.<module-name>.outputs.<output-name>}

Type

string | number | boolean

${modules.<module-name>.var.*}

A map of all variables defined in the module.

Type
Default

object

{}

${modules.<module-name>.var.<variable-name>}

Type

string | number | boolean | link | array[link]

${modules.<module-name>.version}

The current version of the module.

Type

string

Example:

my-variable: ${modules.<module-name>.version}

${runtime.*}

Alias for action.

Type

object

${runtime.build.*}

Information about a Build action dependency, including its outputs.

Type
Default

object

{}

${runtime.build.<action-name>.name}

The name of the action.

Type

string

${runtime.build.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.build.<action-name>.disabled}

${runtime.build.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.build.<action-name>.buildPath}

${runtime.build.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.build.<action-name>.sourcePath}

${runtime.build.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.build.<action-name>.mode}

${runtime.build.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.build.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.build.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.build.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.build.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.build.<action-name>.version}

${runtime.deploy.*}

Information about a Deploy action dependency, including its outputs.

Type
Default

object

{}

${runtime.deploy.<action-name>.name}

The name of the action.

Type

string

${runtime.deploy.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.deploy.<action-name>.disabled}

${runtime.deploy.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.deploy.<action-name>.buildPath}

${runtime.deploy.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.deploy.<action-name>.sourcePath}

${runtime.deploy.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.deploy.<action-name>.mode}

${runtime.deploy.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.deploy.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.deploy.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.deploy.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.deploy.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.deploy.<action-name>.version}

${runtime.run.*}

Information about a Run action dependency, including its outputs.

Type
Default

object

{}

${runtime.run.<action-name>.name}

The name of the action.

Type

string

${runtime.run.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.run.<action-name>.disabled}

${runtime.run.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.run.<action-name>.buildPath}

${runtime.run.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.run.<action-name>.sourcePath}

${runtime.run.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.run.<action-name>.mode}

${runtime.run.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.run.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.run.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.run.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.run.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.run.<action-name>.version}

${runtime.test.*}

Information about a Test action dependency, including its outputs.

Type
Default

object

{}

${runtime.test.<action-name>.name}

The name of the action.

Type

string

${runtime.test.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.test.<action-name>.disabled}

${runtime.test.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.test.<action-name>.buildPath}

${runtime.test.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.test.<action-name>.sourcePath}

${runtime.test.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.test.<action-name>.mode}

${runtime.test.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.test.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.test.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.test.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.test.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.test.<action-name>.version}

${runtime.services.*}

Alias for deploy.

Type
Default

object

{}

${runtime.services.<action-name>.name}

The name of the action.

Type

string

${runtime.services.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.services.<action-name>.disabled}

${runtime.services.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.services.<action-name>.buildPath}

${runtime.services.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.services.<action-name>.sourcePath}

${runtime.services.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.services.<action-name>.mode}

${runtime.services.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.services.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.services.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.services.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.services.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.services.<action-name>.version}

${runtime.tasks.*}

Alias for run.

Type
Default

object

{}

${runtime.tasks.<action-name>.name}

The name of the action.

Type

string

${runtime.tasks.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${runtime.tasks.<action-name>.disabled}

${runtime.tasks.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${runtime.tasks.<action-name>.buildPath}

${runtime.tasks.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${runtime.tasks.<action-name>.sourcePath}

${runtime.tasks.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${runtime.tasks.<action-name>.mode}

${runtime.tasks.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${runtime.tasks.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${runtime.tasks.<action-name>.outputs.*}

Type
Default

object

{}

${runtime.tasks.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${runtime.tasks.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${runtime.tasks.<action-name>.version}

${actions.*}

Runtime outputs and information from other actions (only resolved at runtime when executing actions).

Type

object

${actions.build.*}

Information about a Build action dependency, including its outputs.

Type
Default

object

{}

${actions.build.<action-name>.name}

The name of the action.

Type

string

${actions.build.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.build.<action-name>.disabled}

${actions.build.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.build.<action-name>.buildPath}

${actions.build.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.build.<action-name>.sourcePath}

${actions.build.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.build.<action-name>.mode}

${actions.build.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.build.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.build.<action-name>.outputs.*}

Type
Default

object

{}

${actions.build.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.build.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.build.<action-name>.version}

${actions.deploy.*}

Information about a Deploy action dependency, including its outputs.

Type
Default

object

{}

${actions.deploy.<action-name>.name}

The name of the action.

Type

string

${actions.deploy.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.deploy.<action-name>.disabled}

${actions.deploy.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.deploy.<action-name>.buildPath}

${actions.deploy.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.deploy.<action-name>.sourcePath}

${actions.deploy.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.deploy.<action-name>.mode}

${actions.deploy.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.deploy.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.deploy.<action-name>.outputs.*}

Type
Default

object

{}

${actions.deploy.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.deploy.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.deploy.<action-name>.version}

${actions.run.*}

Information about a Run action dependency, including its outputs.

Type
Default

object

{}

${actions.run.<action-name>.name}

The name of the action.

Type

string

${actions.run.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.run.<action-name>.disabled}

${actions.run.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.run.<action-name>.buildPath}

${actions.run.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.run.<action-name>.sourcePath}

${actions.run.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.run.<action-name>.mode}

${actions.run.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.run.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.run.<action-name>.outputs.*}

Type
Default

object

{}

${actions.run.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.run.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.run.<action-name>.version}

${actions.test.*}

Information about a Test action dependency, including its outputs.

Type
Default

object

{}

${actions.test.<action-name>.name}

The name of the action.

Type

string

${actions.test.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.test.<action-name>.disabled}

${actions.test.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.test.<action-name>.buildPath}

${actions.test.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.test.<action-name>.sourcePath}

${actions.test.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.test.<action-name>.mode}

${actions.test.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.test.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.test.<action-name>.outputs.*}

Type
Default

object

{}

${actions.test.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.test.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.test.<action-name>.version}

${actions.services.*}

Alias for deploy.

Type
Default

object

{}

${actions.services.<action-name>.name}

The name of the action.

Type

string

${actions.services.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.services.<action-name>.disabled}

${actions.services.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.services.<action-name>.buildPath}

${actions.services.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.services.<action-name>.sourcePath}

${actions.services.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.services.<action-name>.mode}

${actions.services.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.services.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.services.<action-name>.outputs.*}

Type
Default

object

{}

${actions.services.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.services.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.services.<action-name>.version}

${actions.tasks.*}

Alias for run.

Type
Default

object

{}

${actions.tasks.<action-name>.name}

The name of the action.

Type

string

${actions.tasks.<action-name>.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${actions.tasks.<action-name>.disabled}

${actions.tasks.<action-name>.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${actions.tasks.<action-name>.buildPath}

${actions.tasks.<action-name>.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${actions.tasks.<action-name>.sourcePath}

${actions.tasks.<action-name>.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${actions.tasks.<action-name>.mode}

${actions.tasks.<action-name>.var.*}

The variables configured on the action.

Type
Default

object

{}

${actions.tasks.<action-name>.var.<name>}

Type

string | number | boolean | link | array[link]

${actions.tasks.<action-name>.outputs.*}

Type
Default

object

{}

${actions.tasks.<action-name>.outputs.<output-name>}

Type

string | number | boolean

${actions.tasks.<action-name>.version}

The current version of the action.

Type

string

Example:

my-variable: ${actions.tasks.<action-name>.version}

${inputs.*}

The inputs provided to the config through a template, if applicable.

Type
Default

object

{}

${inputs.<input-key>}

Type

string | number | boolean | link | array[link]

${parent.*}

Information about the config parent, if any (usually a template, if applicable).

Type

object

${parent.name}

The name of the parent config.

Type

string

${template.*}

Information about the template used when generating the config, if applicable.

Type

object

${template.name}

The name of the template.

Type

string

${this.*}

Information about the action currently being resolved.

Type

object

${this.name}

The name of the action.

Type

string

${this.disabled}

Whether the action is disabled.

Type

boolean

Example:

my-variable: ${this.disabled}

${this.buildPath}

The local path to the action build directory.

Type

string

Example:

my-variable: ${this.buildPath}

${this.sourcePath}

The local path to the action source directory.

Type

string

Example:

my-variable: ${this.sourcePath}

${this.mode}

The mode that the action should be executed in (e.g. 'sync' or 'local' for Deploy actions). Set to 'default' if no special mode is being used.

Build actions inherit the mode from Deploy actions that depend on them. E.g. If a Deploy action is in 'sync' mode and depends on a Build action, the Build action will inherit the 'sync' mode setting from the Deploy action. This enables installing different tools that may be necessary for different development modes.

Type
Default

string

"default"

Example:

my-variable: ${this.mode}

${this.var.*}

The variables configured on the action.

Type
Default

object

{}

${this.var.<name>}

Type

string | number | boolean | link | array[link]

The provider config key value. Refer to individual for details.

The provider output value. Refer to individual for details.

The outputs defined by the module (see individual module type for details).

The module output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

The outputs defined by the action (see individual action/module type for details).

The action output value. Refer to individual for details.

here
reference
reference
provider references
provider references
references
module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references
references
action/module type references