generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
main.tf
56 lines (45 loc) · 1.05 KB
/
main.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
provider "opsgenie" {
api_key = var.opsgenie_provider_api_key
}
module "team" {
source = "../../modules/team"
team = {
name = module.this.id
description = "owner-team-description"
}
context = module.this.context
}
module "notification_policy" {
source = "../../modules/notification_policy"
notification_policy = {
name = module.this.id
team_id = module.team.team_id
filter = {
type = "match-all-conditions"
conditions = [
{
field = "tags"
operation = "contains"
expected_value = "recommendation:auto-close"
}
]
}
de_duplication_action = var.de_duplication_action
delay_action = var.delay_action
auto_close_action = {
duration = {
time_unit = "minutes"
time_amount = 5
}
}
auto_restart_action = {
duration = {
time_unit = "minutes"
time_amount = 5
}
max_repeat_count = 3
}
suppress = var.suppress
}
context = module.this.context
}