argo-cd
argo-cd copied to clipboard
allow argocd-server to use aws profiles
Summary
If running the argocd-server in an non-AWS environment it is common to use a ~/.aws/credentials
file for authentication to AWS. In these instances it would be nice to have the option to switch between aws profiles for authenticating to EKS clusters, rather than restricting users to assume roles or only using the default profile.
Specifically when running argocd locally I want to be able to connect to EKS clusters as my own identity, and not rely on the creation of a cluster:admin
service account when using the argocd cluster add
command.
Motivation
argocd cluster add eks-1 --name eks-1-eu-west-1 --aws-cluster-name eks-1 --aws-profile europe
Proposal
Allow passing profile as an option https://github.com/argoproj/argo-cd/blob/master/cmd/argocd-k8s-auth/commands/aws.go#L78