We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad4f3b commit 6bfd999Copy full SHA for 6bfd999
1 file changed
infrastructure/terraform/components/dl/cloudwatch_event_bus.tf
@@ -34,8 +34,8 @@ data "aws_iam_policy_document" "main_event_bus_document" {
34
effect = "Allow"
35
36
principals {
37
- type = "Service"
38
- identifiers = ["events.amazonaws.com"]
+ type = "AWS"
+ identifiers = ["arn:aws:iam::${var.eventbus_account_id}:root"]
39
}
40
41
actions = [
@@ -49,7 +49,9 @@ data "aws_iam_policy_document" "main_event_bus_document" {
49
condition {
50
test = "ArnLike"
51
variable = "aws:SourceArn"
52
- values = ["arn:aws:events:${var.region}:${var.eventbus_account_id}:rule/*-data-plane/*"]
+ values = [
53
+ "arn:aws:events:${var.region}:${var.eventbus_account_id}:rule/*-data-plane*"
54
+ ]
55
56
57
0 commit comments