---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Associate the Terraform environment variable with the datacenter resource block

# Associate the Terraform environment variable with the datacenter resource
block {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Associate the Terraform environment variable with the Cloud Provisioning and Governance datacenter resource block. After associating the
environment variable, you can use it to pass custom inputs parameters during resource
deployment through Terraform Enterprise.

## Before you begin

Role required: admin

## About this task

To set the Terraform environment variable conditionally, use a
scripted expression. For more information, see [Using expressions in Cloud Provisioning and Governance](https://servicenow-prod.fluidtopics.net/bDD2kSim8mCSXROFliQ_kw "Expressions in policy actions can set or override values. Expressions in blueprints can access attributes of resources and can map values to request form fields. Expressions are available in resource blocks, blueprints, policies, and anywhere that Cloud Provisioning and Governance allows scripts.").

## Procedure

1. Navigate to AllCloud Provisioning and GovernanceCloud Admin Portal.  
   The Cloud Admin Portal opens in a new browser tab.
2. Select DesignResource Blocks.
3. Select the appropriate logical datacenter card.
4. Set the logical datacenter resource block to the Draft state.
5. Select the Operations tab.
6. From the Interface drop-down list, select Terraform Orchestration Interface.
7. Select StepsFlow.Subflow.TFEProvision.
8. Set the terraform_variables text box to the environment variable key value pair.  
   For example: {"USER_AGENT_PROVIDER_NAME":"AgentValue"}
9. Set the logical datacenter resource block to the Published state.

*[\>]: and then


