avx-pmarie-aws-infra/modules/eks-auth/main.tf

15 lines
320 B
Terraform
Raw Normal View History

2022-07-01 14:12:11 +02:00
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))
}
}