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

Terraform do not notice a change to asg_desired_capacity #143

Closed
vorozhko opened this issue Sep 27, 2018 · 3 comments
Closed

Terraform do not notice a change to asg_desired_capacity #143

vorozhko opened this issue Sep 27, 2018 · 3 comments

Comments

@vorozhko
Copy link

I have an issue

I have two nodes groups in EKS cluster. Any change to asg_desired_capacity get unnoticed by Terraform.

I'm submitting a...

  • [x ] bug report

What is the current behavior?

Terraform do NOT notice changes to asg_desired_capacity field.

If this is a bug, how to reproduce? Please include a code sample if relevvant.

Increase or decrease values of asg_desired_capacity.
Example of node groups:

worker_groups = "${list(
    map("instance_type","t2.medium",
      "additional_userdata","echo foo bar",
      "key_name","eks-nodes",
      "asg_min_size", "1",
      "asg_desired_capacity", "2",
      "asg_max_size", "3",
      "subnets", "${join(",", data.terraform_remote_state.net_config.k8s-private-subnet-ids)}"
    ),
    map("instance_type","t2.large",
      "additional_userdata","echo foo bar",
      "key_name","eks-nodes",
      "asg_min_size", "1",
      "asg_desired_capacity", "2",
      "asg_max_size", "3",
      "subnets", "${join(",", data.terraform_remote_state.net_config.k8s-private-subnet-ids)}"
    )
    
  )}

What's the expected behavior?

Terraform update ASG.

Environment details

  • Affected module version: 1.6.0
  • OS: MacOS
  • Terraform version: v0.11.7

I notice that in worker.tf file desired_capacity changes are ignored. What the purpose of it?

lifecycle {
    ignore_changes = ["desired_capacity"]
  }

Thanks!

@vorozhko
Copy link
Author

I have found why it's done like that here #38
Closing issue.

@adecchi-2inno
Copy link

@vorozhko
Thank you to show the link to the issue, did you find a workaround to change the desired capacity when the cluster is already deployed ?

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

2 participants