backend is a required field of the Terraform spec.

Backend is a required Terraform Operator field. It is defined as a multiline string in yaml and must be a fully defined Terraform Backend Block. For more information see https://www.terraform.io/language/settings/backends/configuration.

Example usage of the kubernetes cluster as a backend:

  terraform {
   backend "kubernetes" {
    secret_suffix     = "all-task-types"
    namespace         = "default"
    in_cluster_config = true
   }
  }

Example of a remote backend:

  terraform {
   backend "remote" {
    organization = "example_corp"
    workspaces {
      name = "my-app-prod"
    }
   }
  }

Usage of the kubernetes backend is only available as of terraform v0.13+.