argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

allow argocd-server to use aws profiles

Open igaskin opened this issue 1 year ago • 0 comments

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

igaskin avatar Jan 06 '24 00:01 igaskin