avx-pmarie-aws-infra/modules/eks-auth/main.tf
2022-07-01 14:12:11 +02:00

15 lines
320 B
HCL

locals {
current_roles = yamldecode(yamldecode(var.aws_auth_configmap_yaml).data.mapRoles)
}
resource "kubernetes_config_map" "aws_auth" {
metadata {
name = "aws-auth"
namespace = "kube-system"
}
data = {
mapRoles = yamlencode(concat(local.current_roles, var.aws_auth_additional_roles))
}
}