How it works

Our service provides a secure and scalable backend for storing your Terraform state files. Simply configure your Terraform projects to use our backend, and we'll take care of the rest.

Backend Configuration

To use our service, add the configuration provided below to your Terraform files.

Terraform Client Terraform State Backend Service Database HTTP Requests Store/Retrieve State

Example Configuration

Here's an example configuration file for your Terraform backend:

Replace YOURUSERNAME and YOURPASSWORD with the credentials you receive upon registration.

Replace YOURPROJECTNAME with a unique project name for each project you would like to isolate state for, bearing in mind that sharing project names can increase risks.


terraform {
  backend "http" {
    address = "https://statebe.io/statebe/terraform-states/YOURPROJECTNAME/"
    lock_address = "https://statebe.io/statebe/terraform-states/YOURPROJECTNAME/lock/"
    unlock_address = "https://statebe.io/statebe/terraform-states/YOURPROJECTNAME/unlock/"
    lock_method = "POST"
    unlock_method = "DELETE"
    username = "YOURUSERNAME"
    password = "YOURPASSWORD"
  }
}

# Example resource
resource "null_resource" "example" {
  triggers = {
    always_run = "${timestamp()}"
  }

  provisioner "local-exec" {
    command = "echo Hello, Terraform!"
  }
}
        

Example UI

Statebe states

Granting access to your team

Create a group, add yourself and your colleague to the group