From 041a978af6c979455570a68de0a4fb5b42986dfa Mon Sep 17 00:00:00 2001 From: mike-iw <61879747+mike-iw@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:20:31 +0100 Subject: [PATCH] Add alarm description (#6) --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index d2fef83..fefb306 100644 --- a/main.tf +++ b/main.tf @@ -11,6 +11,7 @@ resource "aws_cloudwatch_log_metric_filter" "metric_filter" { resource "aws_cloudwatch_metric_alarm" "metric_alarm" { alarm_name = var.alarm_name + alarm_description = var.alarm_description comparison_operator = var.comparison_operator evaluation_periods = var.evaluation_periods metric_name = aws_cloudwatch_log_metric_filter.metric_filter.name diff --git a/variables.tf b/variables.tf index 4e34541..afa8133 100644 --- a/variables.tf +++ b/variables.tf @@ -24,6 +24,12 @@ variable "alarm_name" { description = "The descriptive name for the alarm. This name must be unique within the user's AWS account" } +variable "alarm_description" { + type = string + description = "The description for the alarm" + default = "" +} + variable "metric_filter_name" { type = string description = "A name for the metric filter"