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

Empty value on self_managed_node_groups_autoscaling_group_names when default node group not created #2193

Closed
1 task done
marpada opened this issue Aug 8, 2022 · 2 comments · Fixed by #2197
Closed
1 task done

Comments

@marpada
Copy link

marpada commented Aug 8, 2022

Description

When creating several self-managed node groups, but NOT the default node group, the output self_managed_node_groups_autoscaling_group_names contains an empty value.

self_managed_node_groups_autoscaling_group_names = [
  "bottlerocket-self-mng-2022080805253047320000002e",
  "complete-self-mng",
  "",
  "efa-20220808052530474100000030",
  "mixed-20220808052530475200000031",
]
  • ✋ I have searched the open/closed issues and my issue is not listed.

Versions

  • Module version :18.26.6

  • Terraform version: Terraform v1.2.6

  • Provider version(s):

+ provider registry.terraform.io/hashicorp/aws v4.25.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.12.1
+ provider registry.terraform.io/hashicorp/tls v3.4.0

Reproduction Code [Required]

Use self-managed group example, but disable the creation of the default node group:

  self_managed_node_groups = {
    default_node_group = { create = false }
    ....
    }

Steps to reproduce the behavior:

Expected behavior

output.self_managed_node_groups_autoscaling_group_names should only contain valid values

self_managed_node_groups_autoscaling_group_names = [
  "bottlerocket-self-mng-2022080805253047320000002e",
  "complete-self-mng",
  "efa-20220808052530474100000030",
  "mixed-20220808052530475200000031",
]

Actual behavior

output.self_managed_node_groups_autoscaling_group_names includes an empty value.

self_managed_node_groups_autoscaling_group_names = [
  "bottlerocket-self-mng-2022080805253047320000002e",
  "complete-self-mng",
  "",
  "efa-20220808052530474100000030",
  "mixed-20220808052530475200000031",
]

Additional context

This issue prevents from using output.self_managed_node_groups_autoscaling_group_names for creating other resources based on autoscaling names. Sometimes the generated list can be filtered out but this not always works, for instance if needed to use it in a count or for_each parameter as Terraform cannot determine the content during the plan.

@antonbabenko
Copy link
Member

This issue has been resolved in version 18.27.1 🎉

@github-actions
Copy link

github-actions bot commented Nov 9, 2022

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