Executing Terraform configuration remotely in Terraform Cloud
In the Managing workspaces in Terraform Cloud recipe in this chapter, we studied how to create a workspace. During the Terraform Cloud workspace configuration, we can configure the CLI to apply the configuration present on a local workstation outside the Terraform Cloud platform. This private workstation is therefore private and can be a development workstation or a machine that serves as an agent for a CI/CD pipeline (such as on an Azure pipeline agent or a Jenkins node).
One of the great advantages of Terraform Cloud is its ability to execute Terraform configurations directly within this platform. This feature, called remote operations, makes it possible to have free Terraform configuration execution pipelines without having to install, configure, and maintain VMs that serve as agents. In addition, it provides a shared Terraform execution interface for all members of the organization.
In this recipe, we will look...