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

Plan fails when create_kms_key=true and create=false #2172

Closed
npapapietro opened this issue Jul 21, 2022 · 2 comments · Fixed by #2174
Closed

Plan fails when create_kms_key=true and create=false #2172

npapapietro opened this issue Jul 21, 2022 · 2 comments · Fixed by #2174

Comments

@npapapietro
Copy link

npapapietro commented Jul 21, 2022

Description

When running terraform plan with the create=false and create_kms_key=true an error Error: Null value found in list is returned. I believe this is because the iam_role for the cluster is hidden behind the create flag as well and null is passed to the kms module here

key_users = concat([local.cluster_role], var.kms_key_users)

Versions

  • Module version [Required]: v18.26.5

Reproduction Code [Required]

module "cluster" {
  source  = "terraform-aws-modules/eks/aws"
  version = "18.26.5"

  create          = false
  create_kms_key  = true
  // ...
}

Steps to reproduce the behavior:

Expected behavior

KMS creation is either dependent on create or updated on creation.

@antonbabenko
Copy link
Member

This issue has been resolved in version 18.26.6 🎉

@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
Development

Successfully merging a pull request may close this issue.

2 participants