pulumi-eks
pulumi-eks copied to clipboard
Support additional kubeconfig options
Hello!
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
The struct KubeconfigOptionsArgs only supports a Profile and a Role. It would be super convenient if it supported adding any generic key/value pair to the env section of the kubeconfig. This would allow me to inject short-lived credentials into the kubeconfig from an already built aws provider object, rather than relying on existing credentials in my environment. (For example, by setting the AWS_ACCESS_KEY, SECRET_KEY, and TOKEN variables)
Another possible option would be to allow passing in an aws credential provider here, and doing all the work for me, but I recognize that could be more work and far more opinionated.
Thank you for filing this enhancement request.
Thanks @sudermanjr - I will bring this up for prioritization. Does seem like a valuable feature. Do you have a workaround at the moment?
For this particular project, I have a temporary workaround since we're only in the POC phase. I'll probably want to test without the workaround in 2-3 weeks if possible.