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

Re-applying terraform results in an error for the Karpenter pattern #2004

Open
vchintal opened this issue Aug 29, 2024 · 0 comments
Open

Re-applying terraform results in an error for the Karpenter pattern #2004

vchintal opened this issue Aug 29, 2024 · 0 comments

Comments

@vchintal
Copy link
Contributor

This line is causing an issue when you try to re-apply terraform

aws_eks_access_entry.karpenter_node_access_entry: Modifying... [id=<Karpnter-iam-role-arn>]
╷
│ Error: updating EKS Access Entry (<Karpnter-iam-role-arn>): operation error EKS: UpdateAccessEntry, https response error StatusCode: 400, RequestID: e55f3b9f-b1e0-4c30-bfc8-a1a86b8f024e, InvalidParameterException: The username must not begin with system:
│ 
│   with aws_eks_access_entry.karpenter_node_access_entry,
│   on addons.tf line 230, in resource "aws_eks_access_entry" "karpenter_node_access_entry":
│  230: resource "aws_eks_access_entry" "karpenter_node_access_entry" {

Fix is to remove the line

kubernetes_groups = [] from this resource

Originally posted by @vara-bonthu in #1920 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant