main: switch data backend to consul

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-02-04 14:44:50 +01:00
parent e7e20b2943
commit 2f002c08b5
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 11 additions and 5 deletions

16
main.tf
View File

@ -16,11 +16,17 @@ provider "cloudflare" {
/* DATA -----------------------------------------*/ /* DATA -----------------------------------------*/
terraform { terraform {
backend "s3" { backend "consul" {
bucket = "tf-state-infra-nimbus" address = "https://consul.statusim.net:8400"
key = "infra-dapps" /* Lock to avoid syncing issues */
region = "eu-central-1" lock = true
encrypt = 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"
} }
} }