Skip to content

Commit ec87c2a

Browse files
attach policy to housing role (#2275)
1 parent 102ac61 commit ec87c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/modules/department/50-aws-iam-roles.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ resource "aws_iam_role_policy" "grant_s3_access_to_ecs_role" {
164164
}
165165

166166
resource "aws_iam_role_policy_attachment" "mtfh_access_attachment" {
167-
count = local.department_identifier == "data-and-insight" ? 1 : 0
167+
count = contains(["data-and-insight", "housing"], local.department_identifier) ? 1 : 0
168168
role = aws_iam_role.department_ecs_role.name
169169
policy_arn = aws_iam_policy.mtfh_access_policy[0].arn
170170
}

0 commit comments

Comments
 (0)