sassoftware / viya4-iac-aws

This project contains Terraform configuration files to provision infrastructure components required to deploy SAS Viya platform products products on Amazon AWS.
Apache License 2.0
39 stars 45 forks source link

InvalidParameterException: minSize can't be greater than desiredSize #298

Open ssajac opened 3 months ago

ssajac commented 3 months ago

Terraform Version Details

Terraform v1.9.x

Terraform Variable File Details

No response

Steps to Reproduce

  1. Terraform plan
  2. Terraform apply

Expected Behavior

EKS Node Group is created successfully.

Actual Behavior

Error: creating EKS Node Group (): operation error EKS: CreateNodegroup, https response error StatusCode: 400, RequestID: , InvalidParameterException: minSize can't be greater than desiredSize

Additional Context

Hello,

We are on Terraform v1.9.x

We can't get past the error "minSize can't be greater that desiredSize".

In the Terraform plan excerpt below we can't figure out why "desired_size=0"; and we also don't know how to modify it to be > 0.

Any feedback is greatly appreciated

module.eks.module.eks_managed_node_group["default"].aws_eks_node_group.this[0] will be created

References

No response

Code of Conduct

ssajac commented 3 months ago

I believe this is where the error is coming from (as min_size '1' can't be greater than desired_size '0') but I can't figure out how the "scaling_config" block is formed; and how does it decide that desired_size is zero.

scaling_config {

desired_size = 0 max_size = 5 min_size = 1 }