Using pipeline variables
Harness IaCM can use Harness pipeline variables as Environment Variables or Terraform Variables within your Workspace.
- Create a variable in your Harness pipeline and retrieve its Fully-Qualified Name (FQN).
- Provide a Key for your Environment Variable or Terraform Variable in the Workspace definition.
- Place the FQN in the "Value" field.
- Run the pipeline.
- The variables will be used in the same fashion as Environment Variables or Terraform Variables in your Terraform workflow.
This functionality can be useful for ephemeral workspaces that may need to change slightly depending on downstream needs such as demonstration or workshop resources.