<p>I want to have 2 worker groups, each with custom tag. 
For example, if I use this template - <a href="https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/examples/basic/main.tf" rel="nofollow noreferrer">https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/examples/basic/main.tf</a></p>

<pre><code> worker_groups = [
{
  name                          = "worker-group-1"
 ....
  //here - what I want to have
  tags = {selector=wg1}
},
{
  name                          = "worker-group-2"
  ....
  //here - what I want to have
  tags = {selector=wg2}
},
</code></pre>

<p>I see the input variables in <a href="https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/variables.tf" rel="nofollow noreferrer">https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/variables.tf</a> , lines 115-122
and template - <a href="https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/workers.tf" rel="nofollow noreferrer">https://github.com/terraform-aws-modules/terraform-aws-eks/blob/v4.0.2/workers.tf</a> , lines 19-29,
but I can't understand how to properly configure them to get custom tags on workers.</p>

malyy
<p>The current version has changed slightly:</p>
<pre><code>worker_groups = [
{
  name = &quot;worker-group-1&quot;
  ....
  
  tags = [
    {
      key                 = &quot;k1&quot;
      value               = &quot;v1&quot;
      propagate_at_launch = true
    },
    {
      key                 = &quot;k2&quot;
      value               = &quot;v2&quot;
      propagate_at_launch = true
    }
   ] 
}]
</code></pre>
