Backend Configuration
As you have just seen, backend configuration can be done either using HCP Terraform or remote backend configuration, based on the type of backend we intend to use.
The backend configuration in both cases requires us to add the backend {} block to the configuration with the necessary parameters, which will be discussed in detail. Some of the backends will be used only to refer to the state file, and some might have advanced capabilities, such as state locking, that will help preserve the state file content when there is a possibility of simultaneous operations against the same state file.
If there is no explicit backend configuration, the default “local” backend will be used. The “local” backend does not need any parameters, and it simply stores the state file in the current working directory.
As per the Terraform 1.5.x documentation, the list of supported built-in backends is as follows:
local
remote
s3
...