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

unmarshaling unknown values is not supported with V2.6.0 #1467

Closed
hatim-heffoudhi opened this issue Oct 21, 2021 · 5 comments
Closed

unmarshaling unknown values is not supported with V2.6.0 #1467

hatim-heffoudhi opened this issue Oct 21, 2021 · 5 comments
Labels

Comments

@hatim-heffoudhi
Copy link

hatim-heffoudhi commented Oct 21, 2021

Hello,

We receive an error in our terraform plan after passing to v.2.6.0 , Its working with the v.2.5.0, is there any parameter or block missing here ?
Thank you for your help

Best regards,
Hatim & Amar

Terraform version: Terraform v1.0.3
Kubernetes provider version: v 2.6.0
Kubernetes version: v1.17


### Affected Resource(s)
<!-- Please list the resources as a list, for example:
- opc_instance
- opc_storage_volume
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this. -->

### Terraform Configuration Files
```hcl
module "eks" {
  source          = "terraform-aws-modules/eks/aws"
  cluster_name    = local.cluster_name
  cluster_version = var.cluster_version
  vpc_id          = module.vpc.id
  subnets         = module.vpc.subnet_private_ids
  tags            = local.tags

  worker_groups_launch_template = [
    {
      name                 = format(local.label_formatter, "worker")
      instance_type        = var.workers_instance_type
      asg_desired_capacity = var.asg_desired_capacity
      asg_max_size         = var.asg_max_size
      asg_min_size         = var.asg_min_size
      root_volume_type     = var.root_volume_type
      root_volume_size     = var.root_volume_size
    }
  ]
  map_users = var.map_users

  map_roles = concat(var.map_roles)

}

data "aws_eks_cluster" "cluster" {
  name = module.eks.cluster_id
}

data "aws_eks_cluster_auth" "cluster" {
  name = module.eks.cluster_id
}


/**
** Provider Kubernetes
**/
provider "kubernetes" {
  host                   = data.aws_eks_cluster.cluster.endpoint
  cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority.0.data)
  exec {
    api_version = "client.authentication.k8s.io/v1alpha1"
    command     = "aws"
    args = [
      "eks",
      "get-token",
      "--cluster-name",
      data.aws_eks_cluster.cluster.name
    ]
  }
}

Debug Output

Panic Output

image

Steps to Reproduce

The error is in plan statement

  1. terraform plan

Expected Behavior

What should have happened?
Creation of the EKS cluster

Actual Behavior

What actually happened?
Error on plan statement

Important Factoids

@alexsomesan
Copy link
Member

This issue should be fixed by this change: #1465
Next patch release will include it.

@hatim-heffoudhi
Copy link
Author

Thank you @alexsomesan 👍!

@alexsomesan
Copy link
Member

@hatim-heffoudhi Can you confirm if this issue got fixed for you in v2.6.1?

@alexsomesan
Copy link
Member

Please let us know if this is resolved or still an issue. Going to close since the proposed fix has been released.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants