Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Update main.tf to use tf12 formatting (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Winker <mike.winker@dwp.gov.uk>
  • Loading branch information
mike-iw and Mike Winker authored Apr 27, 2020
1 parent 83583bf commit 57b6a28
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
resource "aws_cloudwatch_log_metric_filter" "metric_filter" {
log_group_name = "${var.log_group_name}"
log_group_name = var.log_group_name
metric_transformation {
name = "${var.metric_filter_name != "" ? var.metric_filter_name : var.alarm_name}"
namespace = "${var.metric_namespace}"
value = "${var.metric_value}"
name = var.metric_filter_name != "" ? var.metric_filter_name : var.alarm_name
namespace = var.metric_namespace
value = var.metric_value
}
name = "${var.metric_filter_name != "" ? var.metric_filter_name : var.alarm_name}"
pattern = "${var.pattern}"
name = var.metric_filter_name != "" ? var.metric_filter_name : var.alarm_name
pattern = var.pattern
}

resource "aws_cloudwatch_metric_alarm" "metric_alarm" {
alarm_name = "${var.alarm_name}"
comparison_operator = "${var.comparison_operator}"
evaluation_periods = "${var.evaluation_periods}"
metric_name = "${aws_cloudwatch_log_metric_filter.metric_filter.name}"
namespace = "${var.metric_namespace}"
period = "${var.period}"
threshold = "${var.threshold}"
statistic = "${var.statistic}"
alarm_actions = "${var.alarm_action_arns}"
alarm_name = var.alarm_name
comparison_operator = var.comparison_operator
evaluation_periods = var.evaluation_periods
metric_name = aws_cloudwatch_log_metric_filter.metric_filter.name
namespace = var.metric_namespace
period = var.period
threshold = var.threshold
statistic = var.statistic
alarm_actions = var.alarm_action_arns
}

0 comments on commit 57b6a28

Please sign in to comment.