Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting min_capacity EKS module results in error #201

Open
gls4 opened this issue Apr 4, 2024 · 0 comments
Open

Setting min_capacity EKS module results in error #201

gls4 opened this issue Apr 4, 2024 · 0 comments

Comments

@gls4
Copy link
Contributor

gls4 commented Apr 4, 2024

When setting the min_capacity parameter in the EKS module, you may encounter errors with the following (or similar) messages:
InvalidParameterException: Minimum capacity 3 can't be greater than desired size 2

If desired_capacity is not equal to or greater than min_capacity, an error as above will be thrown.

This is the result of the EKS module not updating the configuration of the underlying EKS node group's autoscaling parameters, which is an intentional choice on the part of the module maintainers.

If you encounter this error, you can update the node group's desired size using the following AWS CLI command:
aws eks update-nodegroup-config --cluster-name [EKS cluster name] --nodegroup-name [nodegroup name] --scaling-config desiredSize=[value of min_capacity]

The same change can be effected by using the AWS console, under EKS -> Clusters -> [select EKS cluster] -> Compute Tab -> Nodegroups -> [select nodegroup] -> Edit.

This will update the configuration of the nodegroup's autoscaling parameters, and subsequent terraform applies should not throw this error. For more information, please see: terraform-aws-modules/terraform-aws-eks#835 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant