Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 627 Bytes

File metadata and controls

25 lines (22 loc) · 627 Bytes

Intro

A word of caution: KV store is eventually consistent so multiple/frequent writes could result in unpredictable outcome but it should be possible to swap KV out with other type of backends for a stronger consistency model.

Worker Setup

wrangler secret put TFPWD
wrangler secret put TFUSER
wrangler secret put REALM
wrangler kv:namespace create TERRAFORM
wrangler publish

Terraform Setup

terraform {
  backend "http" {
    address        = "WORKER_URL"
    lock_address   = "WORKER_URL"
    unlock_address = "WORKER_URL"
    username       = "USERNAME"
    password       = "PASSWORD"
  }
}