jenkinsci / aws-credentials-plugin

CloudBees Amazon Web Services Credentials Plugin
https://plugins.jenkins.io/aws-credentials/
MIT License
29 stars 75 forks source link

Wrap a programmatically created eks token in a secret txt credentials #151

Open topikachu opened 2 years ago

topikachu commented 2 years ago

What feature do you want to see added?

According to https://faddom.com/accessing-an-amazon-eks-kubernetes-cluster/ and https://github.com/aws/aws-cli/blob/develop/awscli/customizations/eks/get_token.py, it's possible to create an EKS token from current AWS profile.

Furthermore, this token can be wrapped as a secret text credential and can be used by other plugins which need to access AWS EKS without AWS cli.

A use case is to enable the Jenkins Kubernetes plugin to use a remote EKS as dynamic agents pool.

Upstream changes

No response