Skip to content

Unable to reconcile cluster after disabling Auto ModeΒ #3362

@dwilliams782

Description

@dwilliams782

Description

Due to the other ongoing issues around enabling / disabling Auto Mode, I disabled Auto Mode in the UI for our TF managed EKS cluster, and now it fails with the following:

  # module.cluster.module.eks.aws_eks_cluster.this[0] will be updated in-place
  ~ resource "aws_eks_cluster" "this" {
        id                            = "aws-kubernetes-stg-eu-west-2"
        name                          = "aws-kubernetes-stg-eu-west-2"
        tags                          = {
            "terraform-aws-modules" = "eks"
        }
        # (12 unchanged attributes hidden)

      - storage_config {
          - block_storage {
              - enabled = false -> null
            }
        }

        # (7 unchanged blocks hidden)
    }

β”‚ Error: updating EKS Cluster (aws-kubernetes-stg-eu-west-2) compute config: operation error EKS: UpdateClusterConfig, https response error StatusCode: 400, RequestID: 55cf1bb1-b244-4b1d-bd33-7b66e7e86633, InvalidParameterException: The type for cluster update was not provided.
β”‚ 
β”‚   with module.cluster.module.eks.aws_eks_cluster.this[0],
β”‚   on .terraform/modules/cluster.eks/main.tf line 35, in resource "aws_eks_cluster" "this":
β”‚   35: resource "aws_eks_cluster" "this" {

The current templates do not support hardcoding this value to false, so we are currently stuck.

Versions

  • Module version [Required]: 20.36.0

  • Terraform version: Terraform v1.10.5

  • Provider version(s):

 terraform providers -version
Terraform v1.10.5
on darwin_arm64
+ provider registry.terraform.io/datadog/datadog v3.58.0
+ provider registry.terraform.io/dopplerhq/doppler v1.14.1
+ provider registry.terraform.io/hashicorp/aws v5.98.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.7
+ provider registry.terraform.io/hashicorp/helm v2.17.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.36.0
+ provider registry.terraform.io/hashicorp/null v3.2.4
+ provider registry.terraform.io/hashicorp/time v0.13.1
+ provider registry.terraform.io/hashicorp/tls v4.1.0

Reproduction Code [Required]

Steps to reproduce the behavior:

  1. Enable automode via the TF module
  2. Disable automode via the UI
  3. Run an apply

Expected behavior

The apply should be successful.

Actual behavior

β”‚ Error: updating EKS Cluster (aws-kubernetes-stg-eu-west-2) compute config: operation error EKS: UpdateClusterConfig, https response error StatusCode: 400, RequestID: 55cf1bb1-b244-4b1d-bd33-7b66e7e86633, InvalidParameterException: The type for cluster update was not provided.
β”‚ 
β”‚   with module.cluster.module.eks.aws_eks_cluster.this[0],
β”‚   on .terraform/modules/cluster.eks/main.tf line 35, in resource "aws_eks_cluster" "this":
β”‚   35: resource "aws_eks_cluster" "this" {

Terminal Output Screenshot(s)

Image

Additional context

I will likely fork this and hardcode the values for the dynamic storage_config section as a workaround, as we are stuck currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions