Skip to content

Use ephemeral EKS cluster auth token#1066

Open
davidspielmann wants to merge 1 commit into
awslabs:mainfrom
davidspielmann:davidspielmann/use-ephemeral-eks-cluster-auth
Open

Use ephemeral EKS cluster auth token#1066
davidspielmann wants to merge 1 commit into
awslabs:mainfrom
davidspielmann:davidspielmann/use-ephemeral-eks-cluster-auth

Conversation

@davidspielmann

Copy link
Copy Markdown

What does this PR do?

Fixes #1022 (or a first attempt...)

This PR replaces the aws_eks_cluster_auth data source in infra/terraform/main.tf with the AWS provider's ephemeral aws_eks_cluster_auth resource.

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/terraform from >= 1.8.0 to >= 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

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Mandatory for new blueprints. Yes, I have added a example to support my blueprint PR
  • Mandatory for new blueprints. Yes, I have updated the website/docs or website/blog section for this feature
  • Yes, I ran pre-commit run -a with this PR. Link for installing pre-commit locally

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

I performed the following local validation:

  • terraform fmt -recursive infra/terraform
  • terraform -chdir=infra/terraform init -backend=false
  • terraform -chdir=infra/terraform validate

terraform validate completed successfully. I did not run any other tests. Happy to do this if you believe this is valuable.

@vara-bonthu vara-bonthu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the update! This might break existing stacks. I will create a tag before we merge this

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions Bot added the stale label Jun 5, 2026
@vara-bonthu vara-bonthu removed the stale label Jun 9, 2026
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.

Security Enhancement: Make use of Ephemeral Resources

2 participants