Run the IaC Discovery

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 3 minutes de lecture
  • Run the Infrastructure as Code (IaC) discovery to identify the resources of the Terraform environment.

    Avant de commencer

    • Ensure that you have the appropriate API credentials for the Version Control System (VCS) accounts provisioned in the Terraform Enterprise or Terraform Cloud organizations. For more information, see Create API key credentials for the Terraform account and the supported VCS account.
    • Ensure that Terraform Open Source folders which contain the Terraform templates have unique names. If several Terraform template folders have the same name, multiple change tasks are created even though all the templates mayn't contain variable changes.

    Role required: sn.cmp.cloud_service_designer

    Pourquoi et quand exécuter cette tâche

    Depending on the configuration provider, Cloud Services Catalog Terraform Connector discovers the following resources from the Terraform environment:
    Terraform Open Source
    The IaC Discovery discovers the config installables (Terraform templates) from the Terraform Open Source server.
    Terraform Enterprise or Terraform Cloud
    The IaC Discovery discovers the following items:
    • Workspaces: Terraform workspaces provisioned in the Terraform organization.
    • VCS: VCS repositories and branches provisioned in the Terraform organization.
    • Agent pools:

      Terraform Cloud uses agents and agent pools to communicate with on-premise infrastructure. Deploy agents in the same network as your infrastructure to establish a connection between the infrastructure and Terraform Cloud. For more information on agents and agent pools, see Terraform Cloud agents.

      Cloud Services Catalog Terraform Connector discovers the agent pools created in the Terraform Cloud. You can view the discovered agents in the Config Management module for your config provider. On the catalog order form, an agent pool filter enables you select an active agent to communicate with the private VMware infrastructure.
      Remarque :
      You can see agent pools option in the config management form and the catalog order form when the following conditions are met:
      • You have created the VMware agent pools in the Terraform Cloud organization.
      • You have VMware templates for Terraform Enterprise.
    • Cfg installables: Terraform templates stored in the repositories of the VCS account provisioned the Terraform organization.
      Remarque :
      To discover the Terraform templates from the VCS, Cloud Services Catalog Terraform Connector requires the API key credentials of the VCS account.

    Procédure

    1. Navigate to All > Cloud Provisioning and Governance > Cloud Admin Portal.
      The Cloud Admin Portal opens in a new browser tab.
    2. On the Cloud Admin Portal, navigate to Manage > Config Management.
    3. Select the Terraform provider card.
    4. Select Discover Now.
      Remarque :
      You can't cancel the IaC Discovery job after triggering it.
    5. Facultatif : To use Cloud Services Catalog Terraform Connector with Terraform Enterprise or Terraform Cloud, discover the Terraform templates stored in the provisioned VCS.
      1. Select the Tfe Vcs tab.
      2. From the Tfe Vcs list, select the VCS account that contains the Terraform templates you want to use for Cloud Provisioning and Governance catalog item creation.
      3. From the Credentials drop-down list, select the API credential of the selected VCS account.
      4. From the Related Links, select Find Branches and Repositories.
      5. Repeat step 5.b to 5.d for all VCS accounts that contain the Terraform templates you want to use for Cloud Provisioning and Governance catalog item creation.
    6. Create an Infrastructure as Code (Iac) discovery schedule.
      IaC discovery schedule helps to discover new Terraform templates, workspaces, agent pools, and VCS branches for the specified config provider. It also detects changes in the already discovered Terraform templates. When Cloud Services Catalog Terraform Connector detects a change in the template variable or the template metadata, it automatically creates IaC change tasks for the affected catalog items.
      1. On the Cloud Admin portal, navigate to Manage > IaC Discovery.
      2. Select New.
      3. On the form, fill in the fields.
        Tableau 1. IaC Discovery Schedulers form
        Field Description
        Name Unique and descriptive name of the IaC Discovery schedule.
        Provider Config management provider for which you are creating the discovery schedule.
        Active Option to activate or deactivate the schedule.
        Run Frequency of schedule execution.

        Configure the schedule execution frequency in the Run field and its associated form fields.

      4. Select Submit.

    Que faire ensuite