mirror of
https://github.com/terraform-aws-modules/terraform-aws-eks.git
synced 2025-09-09 19:32:58 +08:00
fix: Correct access policy logic to support not providing a policy to associate (#3464)
This commit is contained in:
@@ -269,7 +269,7 @@ locals {
|
||||
# associations within a single entry
|
||||
flattened_access_entries = flatten([
|
||||
for entry_key, entry_val in local.merged_access_entries : [
|
||||
for pol_key, pol_val in try(entry_val.policy_associations, {}) :
|
||||
for pol_key, pol_val in entry_val.policy_associations :
|
||||
merge(
|
||||
{
|
||||
principal_arn = entry_val.principal_arn
|
||||
|
||||
Reference in New Issue
Block a user