Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support named AWS profiles #103

Open
AlexChesters opened this issue Jun 24, 2024 · 2 comments
Open

Support named AWS profiles #103

AlexChesters opened this issue Jun 24, 2024 · 2 comments

Comments

@AlexChesters
Copy link

AlexChesters commented Jun 24, 2024

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

@dilip0515
Copy link

@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...

@AlexChesters
Copy link
Author

AlexChesters commented Jun 26, 2024

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants