terraform-aws-eks
terraform-aws-eks copied to clipboard
allow multiply roles to be passed to AllowPassingInstanceRole
Description
I want to add Windows nodes to cluster with latest module version.
I'm trying to add windows node to EKS cluster this requires to create new Access entity with new IAM role and EC2_WINDOWS type. I can't reuse the same role as access entity requites to have unique role name (we don't use aws-auth configmap). and it raises error:
ResourceInUseException: The specified access entry resource is already in use on this cluster.
If I create a new role there is no way to pass it into Karpenter module to be used with AllowPassingInstanceRole.
I saw related issues but they all about using aws-auth config. It doesn't work with access entities or I missing something.
Update: I believe i can use Additional policy to do this.