Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 8, 2024
1 parent 3835811 commit b0a48e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion permissionset/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {
multiple = "p-sso-%v-p%v"
}
auto_policy_name_single = local.auto_policy_count == 0 ? [format(local.auto_policy_name_format["single"], var.name)] : []
auto_policy_name_multiple = can(local.auto_policy_count > 0 && local.auto_policy_count <= 20) ? [for i in range(1, local.auto_policy_count + 1) : format(local.auto_policy_name_format["multiple"], var.name, i)] : []
auto_policy_name_multiple = local.auto_policy_count != null && (local.auto_policy_count > 0 && local.auto_policy_count <= 20) ? [for i in range(1, local.auto_policy_count + 1) : format(local.auto_policy_name_format["multiple"], var.name, i)] : []
auto_policy_names = compact(concat(local.auto_policy_name_single, local.auto_policy_name_multiple))
total_policies = length(compact(concat(keys(var.customer_managed_policy_names), local.auto_policy_names)))
}
Expand Down

0 comments on commit b0a48e6

Please sign in to comment.