Skip to content

Commit

Permalink
Add key to anomaly subscription threshold expression dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
asmundh committed Jun 26, 2023
1 parent e5134ea commit 4834e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ resource "aws_ce_anomaly_subscription" "mainsubscription" {
name = "RealtimeAnomalySubscription"
threshold_expression {
dimension {
key = "ANOMALY_TOTAL_IMPACT_ABSOLUTE"
values = [var.anomaly_threshold_in_usd]
match_options = ["GREATER_THAN_OR_EQUAL"]
}
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "account_budget_limit_in_usd" {

variable "anomaly_threshold_in_usd" {
description = "If there is an anomaly in cost above this limit, a message will be sent to SNS."
default = 250
default = "250"
}

variable "env" {
Expand Down

0 comments on commit 4834e9d

Please sign in to comment.