generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmain.tf
44 lines (34 loc) · 836 Bytes
/
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
provider "opsgenie" {
api_key = var.opsgenie_provider_api_key
}
module "owner_team" {
source = "../../modules/team"
team = {
name = format("%s-%s", module.this.id, "owner-team")
description = "owner-team-description"
}
context = module.this.context
}
module "escalation_team" {
source = "../../modules/team"
team = {
name = format("%s-%s", module.this.id, "escalation-team")
description = "owner-team-description"
}
context = module.this.context
}
module "escalation" {
source = "../../modules/escalation"
escalation = {
name = module.this.id
owner_team_id = module.owner_team.team_id
rules = [{
delay = 0
recipient = {
type = "team"
id = module.escalation_team.team_id
}
}]
}
context = module.this.context
}