Use ephemeral EKS cluster auth token#1066
Open
davidspielmann wants to merge 1 commit into
Open
Conversation
vara-bonthu
approved these changes
May 5, 2026
vara-bonthu
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the update! This might break existing stacks. I will create a tag before we merge this
Contributor
|
This PR has been automatically marked as stale because it has been open 30 days |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #1022 (or a first attempt...)
This PR replaces the
aws_eks_cluster_authdata source ininfra/terraform/main.tfwith the AWS provider's ephemeralaws_eks_cluster_authresource.The EKS authentication token is used to configure the Kubernetes, Helm, and Kubectl providers. Using the ephemeral resource avoids persisting this short-lived authentication token in Terraform state or plan files.
Because Terraform ephemeral resources require Terraform 1.10 or later, this PR also updates the minimum Terraform version for
infra/terraformfrom>= 1.8.0to>= 1.10.0.Motivation
The goal is to reduce the exposure of short-lived EKS authentication tokens in Terraform state and plan files, as explained in #1022.
More
website/docsorwebsite/blogsection for this featurepre-commit run -awith this PR. Link for installing pre-commit locallyFor Moderators
Additional Notes
I performed the following local validation:
terraform fmt -recursive infra/terraformterraform -chdir=infra/terraform init -backend=falseterraform -chdir=infra/terraform validateterraform validatecompleted successfully. I did not run any other tests. Happy to do this if you believe this is valuable.