Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 6, 2022
1 parent 0658c22 commit ad1ddf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/full-cluster/policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ locals {
"eks:AccessKubernetesApi",
]
resources = flatten(concat(
list(format(local.common_arn, "eks", format("/clusters/%v/addons", var.cluster_name))),
[for r in local.eks_resources : list(
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))
)]))
Expand Down

0 comments on commit ad1ddf6

Please sign in to comment.