From 354ce72a1ecdb90b061c22a7456e1d6d3bf07c9d Mon Sep 17 00:00:00 2001 From: Andrew Pearce Date: Fri, 23 Jun 2023 13:58:20 +0100 Subject: [PATCH] remove resource policy, is neded for target bus --- terraform/environment/dynamodb_reduced_fees.tf | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/terraform/environment/dynamodb_reduced_fees.tf b/terraform/environment/dynamodb_reduced_fees.tf index dc6c19ff05..9a0de8b5d9 100644 --- a/terraform/environment/dynamodb_reduced_fees.tf +++ b/terraform/environment/dynamodb_reduced_fees.tf @@ -175,21 +175,10 @@ data "aws_iam_policy_document" "cross_account_put_access" { resources = [ "arn:aws:events:eu-west-1:288342028542:event-bus/default" ] - - # principals { - # type = "AWS" - # identifiers = [data.aws_caller_identity.main.account_id] - # } } provider = aws.eu_west_1 } -# resource "aws_cloudwatch_event_bus_policy" "cross_account_put_access" { -# policy = data.aws_iam_policy_document.cross_account_put_access.json -# event_bus_name = aws_cloudwatch_event_bus.reduced_fees.name -# provider = aws.eu_west_1 -# } - resource "aws_cloudwatch_event_rule" "cross_account_put" { name = "cross-account-put" description = "forward dynamodb stream events to bus in remote account"