forked from faros-ai/terraform-aws-kong
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcw.tf
25 lines (20 loc) · 871 Bytes
/
cw.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
module "kong_external_lb_cw" {
source = "./cw/lb"
enable = var.enable_external_lb_alarms
load_balancer = coalesce(join("", aws_lb.external.*.arn_suffix), "none")
target_group = coalesce(join("", aws_lb_target_group.external.*.arn), "none")
cloudwatch_actions = var.cloudwatch_actions
http_4xx_count = var.http_4xx_count
http_5xx_count = var.http_5xx_count
response_time_avg = var.response_time_avg
}
module "kong_internal_lb_cw" {
source = "./cw/lb"
enable = var.enable_internal_lb_alarms
load_balancer = coalesce(join("", aws_lb.internal.*.arn_suffix), "none")
target_group = coalesce(join("", aws_lb_target_group.internal.*.arn), "none")
cloudwatch_actions = var.cloudwatch_actions
http_4xx_count = var.http_4xx_count
http_5xx_count = var.http_5xx_count
response_time_avg = var.response_time_avg
}