Skip to content

Commit 01be195

Browse files
authored
fix: Comparison in user_access module was not working correctly (#53)
1 parent 2054d78 commit 01be195

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/user_access/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ data "aws_iam_policy_document" "access_assumerole_root_policy" {
7979

8080
principals {
8181
type = "AWS"
82-
identifiers = var.assumerole_account_ids == [] ? [local.account_id] : var.assumerole_account_ids
82+
identifiers = length(var.assumerole_account_ids) == 0 ? [local.account_id] : var.assumerole_account_ids
8383
}
8484
}
8585
}

0 commit comments

Comments
 (0)