Skip to content

Commit

Permalink
Use Custom Role name as suffix for policy names (#134)
Browse files Browse the repository at this point in the history
* Mitigates potential policy name conflicts
  • Loading branch information
Stretch96 authored Nov 14, 2024
1 parent cbf304c commit 8123700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iam-custom-roles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "aws_iam_policy" "custom" {
for policy_name, policy in role.policies :
"${role_name}_${policy_name}" => {
role_name = role_name
policy_name = policy_name
policy_name = "${role_name}-${policy_name}"
policy = policy
}
}
Expand Down

0 comments on commit 8123700

Please sign in to comment.