generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathvariables.tf
71 lines (60 loc) · 2.18 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
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
69
70
71
variable "create" {
description = "Determines whether a resources will be created"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Workspace
################################################################################
variable "create_workspace" {
description = "Determines whether a workspace will be created or to use an existing workspace"
type = bool
default = true
}
variable "workspace_id" {
description = "The ID of an existing workspace to use when `create_workspace` is `false`"
type = string
default = ""
}
variable "workspace_alias" {
description = "The alias of the prometheus workspace. See more in the [AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html)"
type = string
default = null
}
variable "logging_configuration" {
description = "The logging configuration of the prometheus workspace."
type = map(string)
default = {}
}
variable "kms_key_arn" {
description = "The ARN of the KMS Key to for encryption at rest"
type = string
default = null
}
################################################################################
# Alert Manager Definition
################################################################################
variable "alert_manager_definition" {
description = "The alert manager definition that you want to be applied. See more in the [AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html)"
type = string
default = <<-EOT
alertmanager_config: |
route:
receiver: 'default'
receivers:
- name: 'default'
EOT
}
################################################################################
# Rule Group Namespace
################################################################################
variable "rule_group_namespaces" {
description = "A map of one or more rule group namespace definitions"
type = map(any)
default = {}
}