Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
terraform-aws-cloudtrail-cloudwatch-alarms
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hossameldin Latif Shahin
terraform-aws-cloudtrail-cloudwatch-alarms
Commits
6a5a59ef
Commit
6a5a59ef
authored
5 years ago
by
Hossameldin Latif Shahin
Browse files
Options
Downloads
Patches
Plain Diff
Pass alert_for prefix for sns topic name
parent
073cbe39
Branches
master
Tags
0.2.3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alarms.tf
+1
-1
1 addition, 1 deletion
alarms.tf
variables.tf
+5
-0
5 additions, 0 deletions
variables.tf
with
6 additions
and
1 deletion
alarms.tf
+
1
−
1
View file @
6a5a59ef
...
...
@@ -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
}
"
...
...
This diff is collapsed.
Click to expand it.
variables.tf
+
5
−
0
View file @
6a5a59ef
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment