Skip to content

Commit

Permalink
instance key and && operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-whitwell committed Dec 18, 2024
1 parent fe2060b commit 971371d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/environment/region/modules/event_bus/bus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ resource "aws_cloudwatch_event_rule" "receive_events_from_mlpa" {
resource "aws_cloudwatch_event_bus_policy" "cross_account_receive" {
count = length(var.receive_account_ids) > 0 ? 1 : 0
event_bus_name = aws_cloudwatch_event_bus.main[0].name
policy = data.aws_iam_policy_document.cross_account_receive.json
policy = data.aws_iam_policy_document.cross_account_receive[0].json
provider = aws.region
}

# Allow MLPA account to send messages
data "aws_iam_policy_document" "cross_account_receive" {
count = var.event_bus_enabled ? 1 : 0
statement {
sid = "CrossAccountAccess"
effect = "Allow"
Expand Down

0 comments on commit 971371d

Please sign in to comment.