Skip to content

Commit

Permalink
Merge pull request #1 from DNXLabs/feature/removing-uneeded-data
Browse files Browse the repository at this point in the history
Removingn unecessary data for cloudwatch log group
  • Loading branch information
adenot authored Jun 27, 2022
2 parents 094a0bc + c08ddc8 commit 1f23451
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions _data.tf

This file was deleted.

2 changes: 1 addition & 1 deletion alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ resource "aws_cloudformation_stack" "cloudtrail_alarm" {
template_body = var.alarm_mode == "full" ? file("${path.module}/cloudtrail-alarms-full.cf.json") : file("${path.module}/cloudtrail-alarms-light.cf.yml")

parameters = {
CloudTrailLogGroupName = data.aws_cloudwatch_log_group.cloudtrail.name
CloudTrailLogGroupName = var.cloudtrail_log_group_name
AlarmNotificationTopic = aws_sns_topic.alarms[0].id
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "aws_lambda_function" "lambda" {
tags = var.tags
environment {
variables = {
LOG_GROUP = data.aws_cloudwatch_log_group.cloudtrail.name,
LOG_GROUP = var.cloudtrail_log_group_name,
TOPIC_ARN= aws_sns_topic.alarms[0].arn,
OFFSET=180
}
Expand Down

0 comments on commit 1f23451

Please sign in to comment.