fix: Merge tags from Fargate profiles with common tags from cluster (#1159)

This commit is contained in:
Lena-nfb
2020-12-23 12:08:19 +00:00
committed by GitHub
parent 618019e331
commit 65777d0a37
2 changed files with 1 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ locals {
pod_execution_role_name = var.create_fargate_pod_execution_role ? element(concat(aws_iam_role.eks_fargate_pod.*.name, list("")), 0) : element(concat(data.aws_iam_role.custom_fargate_iam_role.*.name, list("")), 0)
fargate_profiles_expanded = { for k, v in var.fargate_profiles : k => merge(
{ tags = var.tags },
v,
{ tags = merge(var.tags, lookup(v, "tags", {})) },
) if var.create_eks }
}