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

refactor: Replaced aws-auth ConfigMap entries with access entries #1920

Merged
merged 1 commit into from
Apr 18, 2024
Merged

refactor: Replaced aws-auth ConfigMap entries with access entries #1920

merged 1 commit into from
Apr 18, 2024

Conversation

vchintal
Copy link
Contributor

@vchintal vchintal commented Apr 17, 2024

Description

Replaced aws-auth entries with access entries

How was this change tested?

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

@vchintal vchintal requested a review from a team as a code owner April 17, 2024 07:25
@vchintal vchintal changed the title refactor: Replaced aws-auth configmap roles with access entries refactor: Replaced aws-auth configmap entries with access entries Apr 17, 2024
@vchintal vchintal changed the title refactor: Replaced aws-auth configmap entries with access entries refactor: Replaced aws-auth ConfigMap entries with access entries Apr 17, 2024
Copy link
Contributor

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@bryantbiggs bryantbiggs merged commit 48045cc into aws-ia:main Apr 18, 2024
8 checks passed
resource "aws_eks_access_entry" "karpenter_node_access_entry" {
cluster_name = module.eks.cluster_name
principal_arn = module.eks_blueprints_addons.karpenter.node_iam_role_arn
kubernetes_groups = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the line should not have been there. @vara-bonthu Do you want to send a PR or want me to do it?

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

Successfully merging this pull request may close these issues.

3 participants