<p>I am building an AWS EKS cluster using <a href="https://github.com/terraform-aws-modules/terraform-aws-eks" rel="nofollow noreferrer">this Terraform provider</a>. However, I can't find a way to apply node taints to managed node groups or worker groups. <a href="https://github.com/aws/containers-roadmap/issues/864" rel="nofollow noreferrer">This issue and its resolution</a> seem to suggest that this is not possible. Is there any way to do this?</p>

ramdesh
<p>Now <a href="https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest" rel="noreferrer">eks</a> module does support <a href="https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/modules/node_groups" rel="noreferrer">taints</a> out of the box, just use the following configuration:</p>
<pre><code>module &quot;eks&quot; {
  source = &quot;terraform-aws-modules/eks/aws&quot;
  ...
  node_groups = {
    test_name = {
      ...
      taints = [
        {
          key    = &quot;dedicated&quot;
          value  = &quot;statefulset&quot;
          effect = &quot;NO_SCHEDULE&quot;
        }
      ] 
    }
  }
}
</code></pre>
