kilolock.dev

Standard HTTP Backend

The low-risk Kilolock adoption path is still a standard Terraform or OpenTofu HTTP backend.

terraform {
  backend "http" {
    address        = "http://localhost:8080/v1/states/example"
    lock_address   = "http://localhost:8080/v1/states/example"
    unlock_address = "http://localhost:8080/v1/state-unlock/example"
    lock_method    = "LOCK"
    unlock_method  = "POST"
  }
}

Then:

terraform init
terraform apply

Why this matters

This keeps the first step familiar:

Where Kilolock starts to add value

After the first apply, you can immediately use kl for workflows that plain Terraform does not provide well:

kl status example
kl history example
kl query "SELECT type, COUNT(*) FROM resources GROUP BY type ORDER BY 2 DESC"