Throughout this book, we have discussed the backend and its importance for storing and sharing the Terraform state file.
In the Protecting the state file in the Azure remote backend recipe in Chapter 6, Provisioning Azure Infrastructure with Terraform, we had a concrete case of this when we set up and used a backend in Azure (using Azure Storage). However, this recipe can only be applied with an Azure subscription. The different types of backend listed at https://www.terraform.io/docs/backends/types/index.html mostly require you to purchase platforms or tools.
One of Terraform's primary features is that it allows you to host a Terraform state file in a managed service, which is called a remote backend.
In this recipe, we will learn how to use the remote backend in Terraform Cloud.
Getting ready
The prerequisite for this recipe (as for all the others in this chapter) is that you have an account on Terraform Cloud (http://app.terraform.io...