-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
68 lines (57 loc) · 1.21 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
terraform {
required_providers {
grafana = {
source = "grafana/grafana"
version = "2.14.2"
}
}
# =====================================
# | TODO: CHANGE THIS TO YOUR BACKEND |
# =====================================
backend "s3" {
bucket = "grafanalabs-act-kit-tfstate"
key = "act-kit/tfstate-gh-actions"
region = "us-west-2"
}
}
provider "grafana" {
oncall_access_token = var.oncall_access_token
oncall_url = var.oncall_url
url = var.grafana_url
auth = var.grafana_access_token
}
variable "grafana_url" {
type = string
}
variable "grafana_access_token" {
type = string
}
variable "oncall_url" {
type = string
}
variable "oncall_access_token" {
type = string
}
# ===============================
# | Choose one of the schedules |
# | below by uncommenting it |
# ===============================
module "schedule" {
source = "./schedules/simple-rotation"
team_members = [
"dominiksuess",
"ishanjain",
]
}
# module "schedule" {
# source = "./schedules/timezone-based-rotation"
# team_members_emea = [
# "dominiksuess",
# ]
# team_members_apac = [
# "ishanjain",
# ]
# team_members_amer = [
# "serenakei",
# ]
# }