1
0
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:
Bryant Biggs
2025-08-02 07:55:57 -05:00
committed by GitHub
parent b745952ac8
commit 39be61d702
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -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