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

aws_eks_node_group updates on every "terraform apply" #1500

Closed
divomen opened this issue Jul 26, 2021 · 5 comments
Closed

aws_eks_node_group updates on every "terraform apply" #1500

divomen opened this issue Jul 26, 2021 · 5 comments

Comments

@divomen
Copy link

divomen commented Jul 26, 2021

Description

Every time when I run "terraform apply" it updates every aws_eks_node_group:

  ~ resource "aws_eks_node_group" "workers" {
        id              = "muke:default"
        tags            = {}
        # (15 unchanged attributes hidden)

      ~ launch_template {
            id      = "lt-0ef72b1a562b6c1db"
            name    = "default20210726072841026900000001"
          ~ version = "1" -> "$Latest"
        }

        # (1 unchanged block hidden)
    }

Here is the eks module configuration:

module "eks" {
  source          = "terraform-aws-modules/eks/aws"
  version         = "17.1.0"
  cluster_name    = var.cluster_name
  cluster_version = "1.21"
  subnets         = module.vpc.private_subnets
  vpc_id          = module.vpc.vpc_id

  node_groups_defaults = {
    root_volume_type              = "gp3"
    // Ubuntu 20.04
    ami_id                        = "ami-0b1e8473535ef1ca5"
    additional_security_group_ids = [aws_security_group.worker_group_mgmt.id]
    disk_size                     = 100
    disk_type                     = "gp3"
    create_launch_template        = true
    subnets                       = slice(module.vpc.private_subnets, 0, 1)
    key_name                      = aws_key_pair.ssh_key.key_name
    source_security_group_ids     = "worker_group_mgmt"
  }
  node_groups = var.node_groups
}

It looks like a bug. Or, maybe, I'm wrong?

Versions

  • Terraform: 1.02
  • Provider(s): hashicorp/aws 3.50.0, hashicorp/kubernetes: 2.3.2
  • Module: eks: 17.1.0
@joesteffee
Copy link

#1447

@toneill818
Copy link
Contributor

Duplicate of issue #1446

@AndriiBarabash
Copy link
Contributor

I'm also faced with this. So annoying.

@daroga0002
Copy link
Contributor

daroga0002 commented Aug 26, 2021

it was fixed in version v17.3.0

@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 19, 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

6 participants