-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
73 lines (61 loc) · 1.88 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
variable "name" {
type = string
description = "Name (unique identifier for app or service)"
}
variable "notification_rule_name" {
type = string
description = "Notification rule name, to allow multiple notification triggers per pipeline"
default = "slack-notification"
}
variable "namespace" {
type = string
description = "Namespace (e.g. `skynet`)"
}
variable "stage" {
type = string
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "attributes" {
type = list(any)
description = "List of attributes to add to label"
default = []
}
variable "tags" {
type = map(string)
default = {}
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`)"
}
variable "codepipelines" {
type = list(any)
description = "CodePipeline resources that should trigger Slack notifications"
}
variable "slack_url" {
type = string
description = "Slack webhook URL for deploy notifications"
}
variable "slack_channel" {
type = string
description = "A slack channel to send the deployment notifications to"
}
variable "slack_username" {
type = string
description = "The name of the user that sends the notifications"
default = "Deploy Bot"
}
variable "slack_emoji" {
type = string
description = "The emoji avatar of the user that sends the notifications"
default = ":rocket:"
}
variable "event_type_ids" {
type = list(any)
description = "The list of event type to trigger a notification on"
default = [
"codepipeline-pipeline-pipeline-execution-failed",
"codepipeline-pipeline-pipeline-execution-canceled",
"codepipeline-pipeline-pipeline-execution-started",
"codepipeline-pipeline-pipeline-execution-resumed",
"codepipeline-pipeline-pipeline-execution-succeeded",
"codepipeline-pipeline-pipeline-execution-superseded"
]
}