Skip to content
Snippets Groups Projects
Commit 6a5a59ef authored by Hossameldin Latif Shahin's avatar Hossameldin Latif Shahin
Browse files

Pass alert_for prefix for sns topic name

parent 073cbe39
Branches master
Tags 0.2.3
No related merge requests found
......@@ -2,7 +2,7 @@ data "aws_caller_identity" "current" {}
data "aws_region" "current" {}
locals {
alert_for = "CloudTrailBreach"
alert_for = "${var.alert_for}"
sns_topic_arn = "${var.sns_topic_arn == "" ? aws_sns_topic.default.arn : var.sns_topic_arn }"
endpoints = "${distinct(compact(concat(list(local.sns_topic_arn), var.additional_endpoint_arns)))}"
region = "${var.region == "" ? data.aws_region.current.name : var.region}"
......
......@@ -32,6 +32,11 @@ variable "metric_namespace" {
default = "CISBenchmark"
}
variable "alert_for" {
description = "Prefix"
default = "CloudTrailBreach"
}
variable "create_dashboard" {
description = "When true a dashboard that displays tha statistics as a line graph will be created in CloudWatch"
default = "false"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment