diff --git a/modules/configsubscription/change.tf b/modules/configsubscription/change.tf index 10888dd..ef24adc 100644 --- a/modules/configsubscription/change.tf +++ b/modules/configsubscription/change.tf @@ -13,6 +13,6 @@ resource "aws_cloudwatch_event_rule" "change" { } resource "aws_cloudwatch_event_target" "change" { - rule = aws_cloudwatch_event_rule.delivery.name + rule = aws_cloudwatch_event_rule.change.name arn = var.target_arn } diff --git a/modules/configsubscription/oversized.tf b/modules/configsubscription/oversized.tf index 19cef8a..cb9e464 100644 --- a/modules/configsubscription/oversized.tf +++ b/modules/configsubscription/oversized.tf @@ -15,7 +15,7 @@ resource "aws_cloudwatch_event_rule" "oversized" { } resource "aws_cloudwatch_event_target" "oversized" { - rule = aws_cloudwatch_event_rule.delivery.name + rule = aws_cloudwatch_event_rule.oversized.name arn = var.target_arn input_transformer { diff --git a/modules/forwarder/queue.tf b/modules/forwarder/queue.tf index 158a6b7..8024e11 100644 --- a/modules/forwarder/queue.tf +++ b/modules/forwarder/queue.tf @@ -53,11 +53,6 @@ resource "aws_sqs_queue" "this" { Principal = { "Service" : "events.amazonaws.com" }, - Condition = { - ArnEquals = { - "aws:SourceArn" : aws_cloudwatch_event_rule.this.arn - } - } }, ] })