Skip to content

Commit

Permalink
Add ignore changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ranikamadurawe committed Nov 19, 2024
1 parent ed1fdd8 commit 516adeb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/aws/Custom-AKS-Application-Log-Alarm/log_alarm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ resource "aws_cloudwatch_metric_alarm" "metric_alarm" {
statistic = "Sum"

tags = var.tags

lifecycle {
ignore_changes = [
datapoints_to_alarm
]
}
}
6 changes: 6 additions & 0 deletions modules/aws/Custom-Metric-Alarm/metric_alarm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ resource "aws_cloudwatch_metric_alarm" "metric_alarm" {
}
}
tags = var.tags

lifecycle {
ignore_changes = [
datapoints_to_alarm
]
}
}
6 changes: 6 additions & 0 deletions modules/aws/Metric-Alarm/metric_alarm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ resource "aws_cloudwatch_metric_alarm" "metric_alarm" {
dimensions = var.dimensions

tags = var.tags

lifecycle {
ignore_changes = [
datapoints_to_alarm
]
}
}

0 comments on commit 516adeb

Please sign in to comment.