Terraform Developer Portal template and add-on variables
Terraform Developer Portal provides variables that you can reference in the developer instructions for templates and add-ons. The portal replaces each variable with its value, such as the application or add-on name. To write developer instructions, refer to Create and manage templates and Create and manage add-on definitions.
Use the {{VARIABLE}} syntax to reference these variables.
Template variables
Terraform Developer Portal makes the following variables available to you when you create a template.
| Name | Value |
|---|---|
.ApplicationName | The name of the deployed application. |
.TfcOrgName | The name of the HCP Terraform organization the template belongs to. |
Example:
This {{.ApplicationName}} is deployed to the {{.TfcOrgName}} HCP Terraform organization.
Add-on variables
Terraform Developer Portal makes the following variables available to you when you create an add-on.
| Name | Value |
|---|---|
.ApplicationName | The name of the deployed application. |
.AddonName | The name of the deployed add-on. |
Example:
The {{.AddOnName}} add-on belongs to the {{.ApplicationName}} application.