The data source aws_eks_cluster_auth causes the token to be saved in the plan and potentially expiring before the apply. This is discussed in https://github.com/hashicorp/terraform-provider-aws/issues/13189. The new ephemeral resources in terraform 1.10 should address this perfectly:
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
The data source
aws_eks_cluster_auth
causes the token to be saved in the plan and potentially expiring before the apply. This is discussed in https://github.com/hashicorp/terraform-provider-aws/issues/13189. The new ephemeral resources in terraform 1.10 should address this perfectly:Requested Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Original issue: https://github.com/hashicorp/terraform-provider-aws/issues/13189.
Documentation:
Example of other ephemeral resources in terraform-provider-aws:
Would you like to implement a fix?
None