Skip to content

Commit

Permalink
MLPAB-1767 Change cross account target resource names (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Jan 3, 2025
1 parent c018f0f commit 66fdea3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/modules/eventbridge_cross_account_target/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_cloudwatch_event_target" "cross_account_event_bus" {
target_id = "cross-account-put-${var.name_suffix}"
target_id = "cross-put-${var.name_suffix}"
event_bus_name = var.rule.event_bus_name
rule = var.rule.name
arn = var.target_event_bus_arn
Expand All @@ -11,12 +11,12 @@ resource "aws_cloudwatch_event_target" "cross_account_event_bus" {
}

resource "aws_iam_role" "cross_account_put" {
name = "cross-account-put-${var.name_suffix}"
name = "cross-put-${var.name_suffix}"
assume_role_policy = data.aws_iam_policy_document.assume_role.json
}

resource "aws_iam_role_policy" "cross_account_put" {
name = "cross-account-put-${var.name_suffix}"
name = "cross-put-${var.name_suffix}"
policy = data.aws_iam_policy_document.cross_account_put_access.json
role = aws_iam_role.cross_account_put.id
}
Expand Down

0 comments on commit 66fdea3

Please sign in to comment.