What Are Backends?
Backends basically determine where a state file will be stored for a given configuration. Instead of locally, there are a couple of ways to use backend features:
- Integration with HCP Terraform
- Configuring the backend
{}
block to store the state file in a remote location
The Terraform paid offerings will be discussed in detail as part of Chapter 9, Understanding HCP Terraform’s Capabilities. In this chapter, you will learn about remote backend configurations with supported backends and ways to configure them. The list of backends supported by Terraform will vary between different versions. Refer to the official documentation for the latest information. In the subsequent sections, you will cover the list of backends supported. The list is based on Terraform version 1.5.x at the time of writing.