diff --git a/main.tf b/main.tf index 4f36a28..a94ecea 100644 --- a/main.tf +++ b/main.tf @@ -16,11 +16,17 @@ provider "cloudflare" { /* DATA -----------------------------------------*/ terraform { - backend "s3" { - bucket = "tf-state-infra-nimbus" - key = "infra-dapps" - region = "eu-central-1" - encrypt = true + backend "consul" { + address = "https://consul.statusim.net:8400" + /* Lock to avoid syncing issues */ + lock = true + /* KV store has a limit of 512KB */ + gzip = true + /* WARNING This needs to be changed for every repo. */ + path = "terraform/nimbus/" + ca_file = "ansible/files/consul-ca.crt" + cert_file = "ansible/files/consul-client.crt" + key_file = "ansible/files/consul-client.key" } }