Skip to content

Commit 3116078

Browse files
[PRM-134-v2] address PR comments
1 parent 7cfc9bf commit 3116078

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

infrastructure/lambda-edge-presign.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "aws_cloudwatch_metric_alarm" "edge_presign_lambda_error" {
3333
ok_actions = [module.edge_presign_alarm_topic.arn]
3434
depends_on = [module.edge-presign-lambda, aws_sns_topic.alarm_notifications_topic[0]]
3535
alarm_description = "Triggers when Edge Presign Lambda errors."
36-
count = local.is_sandbox ? 1 : 1
36+
count = local.is_sandbox ? 0 : 1
3737
}
3838

3939
module "edge_presign_alarm_topic" {

infrastructure/lambda-search-patient.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -125,30 +125,6 @@ resource "aws_cloudwatch_metric_alarm" "error_alarm_count_high" {
125125
}
126126
}
127127

128-
129-
# resource "aws_cloudwatch_metric_alarm" "error_alarm_count_high" {
130-
# alarm_name = "search_patient_error_count_high"
131-
# alarm_description = "Triggers when search patient lambda error count is above 7 within 2mins"
132-
# comparison_operator = "GreaterThanThreshold"
133-
# evaluation_periods = 1
134-
# alarm_actions = [module.search_patient_alarm_topic.arn]
135-
# ok_actions = [module.search_patient_alarm_topic.arn]
136-
# threshold = 7
137-
# period = 120
138-
# dimensions = {
139-
# FunctionName = module.search-patient-details-lambda.function_name
140-
# }
141-
# metric_name = "Errors"
142-
# statistic = "Sum"
143-
# namespace = "AWS/Lambda"
144-
# tags = {
145-
# alerting_type = "KPI"
146-
# alarm_group = module.search-patient-details-lambda.function_name
147-
# }
148-
# }
149-
150-
151-
152128
module "search_patient_alarm_topic" {
153129
source = "./modules/sns"
154130
sns_encryption_key_id = module.sns_encryption_key.id

0 commit comments

Comments
 (0)