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

Commit

Permalink
Add alarm description (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-iw authored Jun 16, 2020
1 parent 289de4a commit 041a978
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 041a978

Please sign in to comment.