Predefined Environment Variables (solved)

Are there any environment variables managed by HCP that prepopulate the names of

  • organization
  • project
  • workspace
  • and the run_phase?

In GitLab this is a feature I came to rely on. With HCP I find myself writing redundant configuration that is otherwise captured by structure, already.

Hi @lusitania,

If you are using remote operations, where Terraform CLI is running in an execution environment managed by HCP Terraform rather than your local computer, then you can refer to documentation about the environment variables that are set in that environment.

1 Like

The answer I was hoping for. Many thanks