forked from spacelift-io/terraform-spacelift-datadog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
43 lines (37 loc) · 1.01 KB
/
variables.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
variable "dd_api_key" {
type = string
description = "Datadog API key to use for sending metrics."
sensitive = true
}
variable "dd_site" {
type = string
description = "Datadog site (hostname) to send metrics to."
default = "datadoghq.com"
validation {
condition = contains(
[
"datadoghq.com",
"datadoghq.eu",
"us3.datadoghq.com",
"us5.datadoghq.com",
],
var.dd_site,
)
error_message = "Invalid Datadog site. Valid values are datadoghq.com, datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com."
}
}
variable "integration_name" {
type = string
description = "Name of the integration to create."
default = "Datadog metrics"
}
variable "space_id" {
type = string
description = "ID of the Spacelift space to create notitications for."
default = "root"
}
variable "extra_tags" {
type = map(string)
description = "Extra tags to add to the Datadog metrics, must be in key:value format"
default = {}
}