generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
73 lines (61 loc) · 1.77 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-cloudwatch-alarms"
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 "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
#Module : Synthetic canaries
#Description : Terraform Synthetic canaries module variables.
variable "s3_artifact_bucket" {
type = string
description = "Location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary"
}
variable "schedule_expression" {
type = string
description = "Expression defining how often the canary runs"
}
variable "endpoints" {
type = map(object({
url = string
}))
}
variable "alarm_email" {
type = string
description = "Email address to send alarms to"
}
variable "subnet_ids" {
default = null
type = list(string)
description = "IDs of the subnets where this canary is to run"
}
variable "security_group_ids" {
default = null
type = list(string)
description = "IDs of the security groups for this canary"
}