Skip to content

Commit

Permalink
fix event rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaniluk committed Aug 6, 2024
1 parent bff8f8f commit 4d3eb6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions organizations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "aws_cloudwatch_event_target" "organizations" {
}

resource "aws_cloudwatch_event_rule" "control_tower" {
name = "${var.name_prefix}capture-organizations-account-changes"
name = "${var.name_prefix}capture-control-tower-account-changes"
description = "Captures Control Tower API calls related to account lifecycle and configuration"

event_pattern = jsonencode({
Expand All @@ -47,6 +47,6 @@ resource "aws_cloudwatch_event_rule" "control_tower" {

resource "aws_cloudwatch_event_target" "control_tower" {
arn = aws_sns_topic.account_alerts.arn
rule = aws_cloudwatch_event_rule.organizations.name
rule = aws_cloudwatch_event_rule.control_tower.name
target_id = "SendToSNS-controltower"
}

0 comments on commit 4d3eb6f

Please sign in to comment.