Skip to content

Commit

Permalink
fix policy
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 16, 2022
1 parent 30e20aa commit 31f6f78
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/full-cluster/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ locals {
"eks:AccessKubernetesApi",
]
resources = flatten(concat(
tolist(format(local.common_arn, "eks", format("/clusters/%v/addons", var.cluster_name))),
[for r in local.eks_resources : tolist(
format(local.common_arn, "eks", format("%v/%v", r, var.cluster_name)),
format(local.common_arn, "eks", format("%v/%v/*", r, var.cluster_name))
)]))
[format(local.common_arn, "eks", format("/clusters/%v/addons", var.cluster_name))],
[for r in local.eks_resources : [format(local.common_arn, "eks", format("%v/%v", r, var.cluster_name)),
format(local.common_arn, "eks", format("%v/%v/*", r, var.cluster_name))]]
))
}
}
}
Expand Down

0 comments on commit 31f6f78

Please sign in to comment.