-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Description
After upgrading to v21.3.0 we were unable to apply the latest plan because it's trying to disable Auto Mode when it's already disabled. On applying we got the following error:
│ Error: updating EKS Cluster (common-dev-euw2) compute config: operation error EKS: UpdateClusterConfig, https response error StatusCode: 400, RequestID: ef080ac4-2702-412b-8371-a39333273621, InvalidRequestException: No changes needed for EKS Auto Mode configuration provided
And here was the plan with no changes to our config, the only change being the upgrade to v21.3.0:
# module.eks_cluster.aws_eks_cluster.this[0] will be updated in-place
~ resource "aws_eks_cluster" "this" {
id = "common-dev-euw2"
name = "common-dev-euw2"
tags = {
"BrandName" = "common"
"ClusterName" = "common-dev-euw2"
"Environment" = "dev-euw2"
"Name" = "eks-nodes.common-dev-euw2"
"terraform-aws-modules" = "eks"
}
# (14 unchanged attributes hidden)
+ compute_config {
+ enabled = false
}
~ kubernetes_network_config {
# (3 unchanged attributes hidden)
+ elastic_load_balancing {
+ enabled = false
}
}
+ storage_config {
+ block_storage {
+ enabled = false
}
}
# (4 unchanged blocks hidden)
}
- ✋ I have searched the open/closed issues and my issue is not listed.
⚠️ Note
Before you submit an issue, please perform the following first:
- Remove the local
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
- Re-initialize the project root to pull down modules:
terraform init
- Re-attempt your terraform plan or apply and check if the issue still persists
Versions
-
Module version [Required]: v21.3.0
-
Terraform version: 1.13.2
- Provider version(s):
- hashicorp/external v2.3.5
- hashicorp/local v2.5.3
- hashicorp/null v3.2.4
- hashicorp/random v3.7.2
- hashicorp/aws v6.13.0
Reproduction Code [Required]
Steps to reproduce the behaviour:
- Have an EKS cluster provisioned with Auto Mode disabled
- Upgrade to v21.3.0 of this module
- Run terraform apply
Expected behavior
Apply to work as nothing has changed. Or some guidance on how to prevent auto mode being disabled when it's already disabled, otherwise we can't upgrade the module version.
Actual behavior
Apply fails because request to disable Auto Mode doesn't work if it's already disabled.