-
Notifications
You must be signed in to change notification settings - Fork 1
/
providers.tf
49 lines (43 loc) · 964 Bytes
/
providers.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
terraform {
backend "gcs" {
bucket = "YOUR_CREATED_TF_STATE_BUCKET_NAME"
prefix = "terraform/infra"
}
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
}
google = {
source = "hashicorp/google"
}
random = {
source = "hashicorp/random"
}
template = {
source = "hashicorp/template"
}
restapi = {
source = "fmontezuma/restapi"
}
}
required_version = ">= 1.0"
}
# Providers
provider "cloudflare" {
account_id = var.cloudflare_account_id
email = var.cloudflare_email
api_key = var.cloudflare_api_key
}
provider "google" {
project = var.gcp_project_id
}
provider "random" {}
// Cloudflare for Teams REST
provider "restapi" {
# Configuration options
uri = "https://api.cloudflare.com/client/v4/accounts/${var.cloudflare_account_id}"
headers = {
"X-Auth-Email" : var.cloudflare_email,
"X-Auth-Key" : var.cloudflare_api_key,
}
}