Skip to content

Commit bf885c5

Browse files
authored
[PRM-581] Add conditional count for IAM policy resource (#476)
1 parent d91d8ad commit bf885c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infrastructure/policies.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ resource "aws_iam_policy" "read_only_role_extra_permissions" {
4242
}
4343

4444
resource "aws_iam_policy" "administrator_permission_restrictions" {
45-
name = "AdministratorRestriction"
45+
count = local.is_sandbox ? 0 : 1
46+
name = "AdministratorRestriction"
4647
policy = jsonencode({
4748
Version = "2012-10-17",
4849
Statement = [

0 commit comments

Comments
 (0)