dce-cli icon indicating copy to clipboard operation
dce-cli copied to clipboard

Support named AWS profiles

Open AlexChesters opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Currently the DCE CLI does not support named AWS CLI profiles.

Describe the solution you'd like

I would like a new credential option included in https://dce.readthedocs.io/en/latest/howto.html#configuring-aws-credentials, support for named profiles.

Describe alternatives you've considered

N/A

Additional context

N/A

AlexChesters avatar Jun 24 '24 10:06 AlexChesters

@AlexChesters - You can set the profile to ‘aws configure set aws_access_key_id A..... --profile DCE’ instead of ‘aws configure set aws_access_key_id A.....’. The existing dce auth command from the cli allows the profile setting ‘dce --config=dce.yml leases login aaa... --profile dce’ once knowing the lease aaa...

dilip0515 avatar Jun 25 '24 20:06 dilip0515

@dilip0515 In my case I'm using AWS SSO, so I don't want to specify long lived access keys like that (I want to avoid them entirely)

I currently have named profiles that work in their entirety, e.g.

MC-N385402:dce chesta02$ aws s3 ls --profile dce-master
2024-06-24 10:59:07 my-bucket

my ask is for dce-cli to be able to use these natively without me needing to acquire long-lived credentials and store them locally (which appears to be the only way forward currently)

AlexChesters avatar Jun 26 '24 07:06 AlexChesters