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

Upgrade 18.x --> 19.x- create_kms_key Provision Error #2321

Closed
jauyzed opened this issue Dec 6, 2022 · 5 comments · Fixed by #2328
Closed

Upgrade 18.x --> 19.x- create_kms_key Provision Error #2321

jauyzed opened this issue Dec 6, 2022 · 5 comments · Fixed by #2328

Comments

@jauyzed
Copy link

jauyzed commented Dec 6, 2022

Hello,

I'm testing self-managed node groups. We do not have access to create kms_key nor tag them. I was supplying the kms_key_id where possible with version 18.x. With the upgrade to 19.x, I tried to set create_kms_key = false and ran into this.

on .terraform/modules/eks/main.tf line 59, in resource "aws_eks_cluster" "this":
│   59:         key_arn = var.create_kms_key ? module.kms.key_arn : encryption_config.value.provider_key_arn
│     ├────────────────
│     │ encryption_config.value is object with 1 attribute "resources"
│
│ This object does not have an attribute named "provider_key_arn".

Any way to override this?

Generally, we do not have access/permission to manage kms keys, iam roles/policies.

Thanks!

@bryantbiggs
Copy link
Member

I believe you will need to set:

  create_kms_key            = false
  cluster_encryption_config = {}

@bryantbiggs
Copy link
Member

I think I might be assuming you want to disable secret encryption and that could be incorrect. @jauyzed can you post the configuration you are using and what the desired outcome is that you are trying to achieve?

@tushar-swami
Copy link

tushar-swami commented Dec 7, 2022

I am also getting similar error, we need to use existing KMS key for our cluster which we are passing as a variable
What should be format to use existing kms key ? Below value is not working, which was working in 18.x

config

cluster_encryption_config = [
{
provider_key_arn = "${var.cluster_encryption_config}"
resources = ["secrets"]
}
]

@antonbabenko
Copy link
Member

This issue has been resolved in version 19.0.4 🎉

@github-actions
Copy link

github-actions bot commented Jan 7, 2023

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 Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.