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

Fresh cluster using managed node groups fails to plan with latest release #1637

Closed
bengesoff opened this issue Oct 12, 2021 · 2 comments
Closed

Comments

@bengesoff
Copy link

Description

On the latest release (v17.21.0), a fresh cluster using managed node groups fails to plan. I think it might be due to #1633 because pinning the version to v17.20.0 fixes the issue.

Versions

  • Terraform: v1.0.7
  • Provider(s): provider registry.terraform.io/hashicorp/aws v3.62.0
  • Module: v17.21.0

Reproduction

Steps to reproduce the behavior:

  1. Use the code snippet in the section below
  2. Run terraform init
  3. Run terraform apply

Code Snippet to Reproduce

module "eks" {
  source = "terraform-aws-modules/eks/aws"

  cluster_name    = local.cluster_name
  cluster_version = "1.21"

  subnets = module.vpc.private_subnets
  vpc_id  = module.vpc.vpc_id

  node_groups = {
    t2medium = {
      instance_types   = ["t3.medium"]
      max_capacity     = 5
      min_capacity     = 1
      desired_capacity = 1
    }
  }

  # Use `aws eks get-token` instead of `aws-iam-authenticator` in the generated kubeconfig
  kubeconfig_aws_authenticator_command = "aws"
  kubeconfig_aws_authenticator_command_args = [
    "--region",
    local.region,
    "eks",
    "get-token",
    "--cluster-name",
    local.cluster_name
  ]
}

Expected behavior

The configuration should create a plan and ask for approval

Actual behavior

The command fails during the refresh phase with the following error message:

╷
│ Error: error reading EKS Cluster (atlantis): couldn't find resource
│
│   with module.eks.module.node_groups.data.aws_eks_cluster.default[0],
│   on .terraform/modules/eks/modules/node_groups/locals.tf line 1, in data "aws_eks_cluster" "default":
│    1: data "aws_eks_cluster" "default" {
│

Terminal Output Screenshot(s)

image

@bengesoff
Copy link
Author

Oops duplicate of #1635, @hfuss beat me to it

@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 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant