-
Notifications
You must be signed in to change notification settings - Fork 10
/
variables.tf
111 lines (92 loc) · 3.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "managedby" {
type = string
default = "anmol@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-cloudwatch-event-rule"
description = "Terraform current module repo"
validation {
# regex(...) fails if it cannot find a match
condition = can(regex("^https://", var.repository))
error_message = "The module-repo value must be a valid Git repo link."
}
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
#Module : CLOUDWATCH METRIC ALARM
#Description : Provides a CloudWatch Metric Alarm resource.
variable "enabled" {
type = bool
default = true
description = "Enable event."
}
variable "description" {
type = string
default = ""
description = "The description for the rule."
}
variable "schedule_expression" {
default = null
description = "(if event_pattern isn't specified) The scheduling expression. For example, cron(0 20 * * ? *) or rate(5 minutes)."
}
variable "event_pattern" {
default = null
description = "(schedule_expression isn't specified) Event pattern described a JSON object. See full documentation of CloudWatch Events and Event Patterns for details."
}
variable "role_arn" {
type = string
default = ""
description = "The Amazon Resource Name (ARN) associated with the role that is used for target invocation."
}
variable "is_enabled" {
type = bool
default = true
description = "Whether the rule should be enabled (defaults to true)."
}
variable "target_id" {
type = string
default = ""
description = "The Amazon Resource Name (ARN) associated with the role that is used for target invocation."
}
variable "arn" {
type = string
default = ""
description = "The Amazon Resource Name (ARN) associated with the role that is used for target invocation."
}
variable "input_path" {
type = string
default = ""
description = "The value of the JSONPath that is used for extracting part of the matched event when passing it to the target."
}
variable "target_role_arn" {
type = string
default = ""
description = "The Amazon Resource Name (ARN) of the IAM role to be used for this target when the rule is triggered. Required if ecs_target is used."
}
variable "input_paths" {
type = map(any)
default = {}
description = "Key value pairs specified in the form of JSONPath (for example, time = $.time)"
}
variable "input_template" {
type = string
default = ""
description = "Template to customize data sent to the target. Must be valid JSON. To send a string value, the string value must include double quotes. Values must be escaped for both JSON and Terraform,"
}