Using the remote backend in Terraform Cloud
Throughout this book, we have discussed storing and sharing the Terraform state.
In the Protecting the state file in the Azure remote backend recipe in Chapter 8, Provisioning Azure Infrastructure with Terraform, we saw 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 backends listed at https://www.terraform.io/docs/backends/types/index.html mostly require you to purchase platforms or tools.
One of Terraform Cloud’s primary features is that it allows you to host the state.
In this recipe, we will learn how to use the cloud
backend, which refers to 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/) and are logged in. Furthermore, you will need to create a project...