Skip to content

Commit 44f1ccd

Browse files
committed
Fix SSO permissions loop
* Includes 'Inconsistent conditional result types' when the `sso_permission_sets` variable is complete * Sets the false value to null rather than an empty object
1 parent 7a4bfdb commit 44f1ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sso.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data "aws_identitystore_user" "aws" {
3939
}
4040

4141
resource "aws_ssoadmin_permission_set" "permission_set" {
42-
for_each = local.enable_sso ? local.sso_permission_sets : {}
42+
for_each = local.enable_sso ? local.sso_permission_sets : null
4343

4444
instance_arn = tolist(data.aws_ssoadmin_instances.ssoadmin_instances.arns)[0]
4545
name = each.key

0 commit comments

Comments
 (0)