add main.tf with providers and backend

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-05-26 12:26:03 +02:00
parent f2cbaa5599
commit 76b383755b
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 29 additions and 0 deletions

29
main.tf Normal file
View File

@ -0,0 +1,29 @@
/* DERIVED --------------------------------------*/
provider "digitalocean" {
token = var.digitalocean_token
spaces_access_id = var.digitalocean_spaces_id
spaces_secret_key = var.digitalocean_spaces_key
}
provider "cloudflare" {
email = var.cloudflare_email
api_key = var.cloudflare_token
account_id = var.cloudflare_account
}
/* DATA -----------------------------------------*/
terraform {
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/nim-waku/"
ca_file = "ansible/files/consul-ca.crt"
cert_file = "ansible/files/consul-client.crt"
key_file = "ansible/files/consul-client.key"
}
}