File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed
Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff 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
3939module "edge_presign_alarm_topic" {
Original file line number Diff line number Diff 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-
152128module "search_patient_alarm_topic" {
153129 source = " ./modules/sns"
154130 sns_encryption_key_id = module. sns_encryption_key . id
You can’t perform that action at this time.
0 commit comments