Skip to content

Commit d4a3792

Browse files
[ndr-410] renamed IAM resources to prevent name clash
1 parent 8167071 commit d4a3792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base_iam/iam_github_pre-prod.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ resource "aws_iam_role_policy_attachment" "github_actions_policy_pre_prod" {
556556
resource "aws_iam_policy" "github_actions_policy_pre_prod" {
557557
count = local.is_pre_production ? 1 : 0
558558
description = null
559-
name = "github-actions-policy"
559+
name = "${terraform.workspace}-github-actions-policy"
560560
name_prefix = null
561561
path = "/"
562562
policy = jsonencode(
@@ -818,7 +818,7 @@ resource "aws_iam_role_policy_attachment" "github_extended_policy_1_pre_prod" {
818818
resource "aws_iam_policy" "github_extended_policy_1_pre_prod" {
819819
count = local.is_pre_production ? 1 : 0
820820
description = "more required items for GitHub access"
821-
name = "github-extended-policy-1"
821+
name = "${terraform.workspace}-github-extended-policy-1"
822822
name_prefix = null
823823
path = "/"
824824
policy = jsonencode(

0 commit comments

Comments
 (0)