Skip to content

Commit

Permalink
Fix ProvisionedConcurrencyUtilization dimension and unit being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaei committed Mar 26, 2024
1 parent 94e00f7 commit cd8f0ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ resource "aws_appautoscaling_policy" "this" {

metric_stat {
stat = "Average"
unit = "Percent"

metric {
metric_name = "ProvisionedConcurrencyUtilization"
Expand All @@ -149,6 +148,11 @@ resource "aws_appautoscaling_policy" "this" {
name = "FunctionName"
value = aws_lambda_function.this.function_name
}

dimensions {
name = "Resource"
value = "${aws_lambda_function.this.function_name}:${aws_lambda_function.this.version}"
}
}
}
}
Expand Down

0 comments on commit cd8f0ea

Please sign in to comment.