Skip to content

Commit b50dd3b

Browse files
Update main.tf
Because encryption_config is now strictly defined as an object, count will never be <1 even if empty.
1 parent 7efa43f commit b50dd3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ locals {
2424
role_arn = try(aws_iam_role.this[0].arn, var.iam_role_arn)
2525

2626
create_outposts_local_cluster = var.outpost_config != null
27-
enable_encryption_config = length(var.encryption_config) > 0 && !local.create_outposts_local_cluster
27+
enable_encryption_config = var.encryption_config != {} && !local.create_outposts_local_cluster
2828

2929
auto_mode_enabled = try(var.compute_config.enabled, false)
3030
}

0 commit comments

Comments
 (0)