Skip to content

EKS Auto Mode example for custom NodePool/NodeClass #3421

@cdenneen

Description

@cdenneen

Currently EKS AutoMode doesn't seem to propagate custom tags from the eks module to the created NodeClass/NodeGroup/LaunchTemplate/EC2/EBS/etc.

According to docs that is doable via custom policy [1] which this module already adds to the Cluster IAM Role so it seems that policy isn't enough and needs to be combined with replacing the "default" NodeClass with a custom one with tags and would imagine a custom NodePools to use that new custom NodeClass to replace "system" and "general-purpose".

I find the fact that tags can't be merged() with the managed tags handled by EKS Auto Mode to be frustrating but I know what is an upstream issue which is outside the scope of this module and probably even the AWS provider until AWS allows it.

Because of that I would really appreciate an example like current one [2], that provides example of how to create custom NodePool, NodeClass and have the cluster_compute_config use that in order to populate tags. Sadly since the "tags" is the only value changing we are duplicating the default's so what those defaults are today could change tomorrow (like the default requirements in the built-in node pools).

1 - https://docs.aws.amazon.com/eks/latest/userguide/auto-learn-iam.html#tag-prop
2 - https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/eks-auto-mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions