In the first part of this recipe, we configured the Terraform execution mode of our workspace. In this configuration, we chose local mode, which indicates that Terraform will ensure the configuration is installed on a private machine (either a local development station or a CI/CD pipeline agent). In this case, the created workspace is just used to store the Terraform state.
Then, in the second part, we created a token that allows the Terraform binary to authenticate with our Terraform Cloud workspace.
In the last part, we wrote the Terraform configuration, which describes the settings of our remote backend. In this configuration, we used the remote backend, in which we added the following parameters:
- hostname with the "app.terraform.io" value, which is the domain of Terraform Cloud
- organization, which contains the demoBook name of the organization
- workspaces with the name of the demo-app workspace that we created manually in the prerequisites...