Run the IaC Discovery
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
- 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
Que faire ensuite
- Use multiple repositories structure with Terraform Connector app with IaC Discovery
- If Cloud Services Catalog Terraform Connector discovers new Terraform templates that you want to use for cloud resource provisioning, create a catalog item from the discovered template. For more information, see Create a catalog item from the Terraform template.
- If Cloud Services Catalog Terraform Connector has discovered changes in an
existing template, take one of the following actions to resolve the
associated IaC change task:
- Update the affected catalog item per the updated Terraform template.
- Deactivate the affected catalog item, and then create a catalog item per the updated template.