From 4d3eb6f083adc9d16cac6b05313bb0bb3da23556 Mon Sep 17 00:00:00 2001 From: Cris Daniluk Date: Tue, 6 Aug 2024 13:48:47 -0400 Subject: [PATCH] fix event rule --- organizations.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/organizations.tf b/organizations.tf index 7ecd475..3b42ae5 100644 --- a/organizations.tf +++ b/organizations.tf @@ -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({ @@ -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" }