From 2f002c08b53cc71bbd171bf8bafc70512d964b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 4 Feb 2020 14:44:50 +0100 Subject: [PATCH] main: switch data backend to consul MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- main.tf | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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" } }