Skip to content

Commit 35820c6

Browse files
committed
Fix threshold for cache serverless data
1 parent 3d1daa9 commit 35820c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alarms.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ resource "aws_cloudwatch_metric_alarm" "cache_serverless_data" {
107107
period = 60
108108
statistic = "Average"
109109

110-
threshold = ceil(var.max_data_storage * var.alarm_data_threshold_percent / 100)
110+
threshold = ceil((var.max_data_storage * 1000 * 1000 * 1000) * var.alarm_data_threshold_percent / 100)
111111

112112
tags = var.tags
113113

0 commit comments

Comments
 (0)