pulumi-eks icon indicating copy to clipboard operation
pulumi-eks copied to clipboard

Support additional kubeconfig options

Open sudermanjr opened this issue 3 years ago • 3 comments
trafficstars

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.

sudermanjr avatar May 24 '22 16:05 sudermanjr

Thank you for filing this enhancement request.

guineveresaenger avatar May 27 '22 17:05 guineveresaenger

Thanks @sudermanjr - I will bring this up for prioritization. Does seem like a valuable feature. Do you have a workaround at the moment?

viveklak avatar May 27 '22 17:05 viveklak

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.

sudermanjr avatar May 27 '22 19:05 sudermanjr