-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
36 lines (33 loc) · 1.16 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
resource "keep_provider" "prometheus" {
name = "prometheus-dev"
type = "prometheus"
auth_config = {
url = "http://localhost:9090"
/*
from keep cli you can easily get the which config params are needed for the provider you want to connect
~ keep provider connect prometheus --help
+------------+--------------+----------+-----------------------+
| Provider | Config Param | Required | Description |
+------------+--------------+----------+-----------------------+
| prometheus | --url | True | Prometheus server URL |
| | --username | False | Prometheus username |
| | --password | False | Prometheus password |
+------------+--------------+----------+-----------------------+
*/
}
#install_webhook = true (optional)
}
resource "keep_workflow" "example_workflow" {
workflow_file_path = "path/to/workflow.yml"
}
resource "keep_mapping" "example_mapping" {
name = "example_mapping"
mapping_file_path = "path/to/mapping.yml"
matchers = [
"your unique matcher",
]
#priority = 1 (optional)
}
output "keep_provider_id" {
value = keep_provider.prometheus.id
}