In this recipe, we learned how to centrally store report files in the Terraform Cloud backend.
To do this, we created a workspace manually so that we could configure it and choose the local execution mode. In the Executing Terraform configuration in Terraform Cloud recipe of this chapter, if we want to use remote mode, we simply put the name of the workspace in the configuration of the backend, which creates it automatically if it does not exist.
Then, we configured the Terraform CLI with the terraform.rc file. Another solution is to use the terraform login command, which creates the token, and the credential.tfrc.json configuration file.
The following screenshot shows the execution of this command:
Concerning the token, we created it at the organization level in order to protect Terraform's organization-only executions. To...