Skip to content

Commit

Permalink
update count for assume role
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 27, 2025
1 parent b5ecc52 commit 9f808fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform-state/group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ resource "aws_iam_group_policy_attachment" "terraform_managed" {
}

resource "aws_iam_group_policy_attachment" "terraform_assume" {
count = !var.application_mode ? 1 : 0
group = aws_iam_group.terraform.name
policy_arn = aws_iam_policy.allow_assume_role.arn
policy_arn = !var.application_mode ? aws_iam_policy.allow_assume_role[0].arn : null
}


Expand Down

0 comments on commit 9f808fc

Please sign in to comment.