Remote backend on Terraform Cloud

  1. Create an account on app.terraform.io
  2. Inside of it - create an organization (example: pctags) and workspace (example: tf)
  3. Put this snippet of code inside your Terraform manifests:
    terraform {
      cloud {
        organization = "pctags"
    
        workspaces {
          name = "tf"
        }
      }
    }
  4. Run terraform init