<p>I have a kubernetes cluster that I'm now migrating to Helm. Cluster is running under AWS managed service AWS EKS.</p>
<p>Since AWS EKS by default creates only 1 user in the cluster (system.master) which is the AWS User who created the cluster. Having said that, in order to create another user to the cluster, I wound need to create a config map below:</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: aws-auth
  namespace: kube-system
data:
  mapRoles: |
    - rolearn: arn:aws:iam::&lt;accountid&gt;:role/terraform-eks-main-node
      username: system:node:{{EC2PrivateDNSName}}
      groups:
        - system:bootstrappers
        - system:nodes
  mapUsers: | 
    - userarn: arn:aws:iam::&lt;accountid&gt;:user/admin-access 
      username: admin-access 
      groups: 
        - system:masters
</code></pre>
<p>running the configmap using helm causes issues due to <code>{{EC2PrivateDNSName}}</code>. Is there any proper way to handle it?</p>

Edcel Cabrera Vista
<p>Whenever Helm (and the embedded Go <code>text/template</code> engine) sees <code>{{</code>, it interprets it as a template variable expansion.  If you want to include those characters literally in the output, you need a template expression that generates them; for example</p>
<pre class="lang-yaml prettyprint-override"><code>username: system:node:{{ &quot;{{&quot; }}EC2PrivateDNSName}}
</code></pre>
