From e70387e010c1debff41b2bd88b6c4f01d7f59070 Mon Sep 17 00:00:00 2001 From: Joshua Hawxwell Date: Fri, 3 Jan 2025 07:57:53 +0000 Subject: [PATCH] Change cross account target resource names --- terraform/modules/eventbridge_cross_account_target/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terraform/modules/eventbridge_cross_account_target/main.tf b/terraform/modules/eventbridge_cross_account_target/main.tf index f944e1a3..f266f6c7 100644 --- a/terraform/modules/eventbridge_cross_account_target/main.tf +++ b/terraform/modules/eventbridge_cross_account_target/main.tf @@ -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 @@ -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 }