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

Add support for --profile flag for choosing AWS profile #20

Open
kaheicanaan opened this issue Jul 26, 2023 · 4 comments
Open

Add support for --profile flag for choosing AWS profile #20

kaheicanaan opened this issue Jul 26, 2023 · 4 comments

Comments

@kaheicanaan
Copy link

Currently, all boto3 clients are initiated without specifying the AWS profile name. Hence, the default profile will be used.

Adding the --profile flag would significantly improve the handiness of the CLI because it is very common to switch the profile frequently during development (for example, changing the target environment between dev and prod by switching the AWS profile).

@lmouhib
Copy link
Contributor

lmouhib commented Jul 26, 2023

Hi, thanks for raising this. We have it in our plan, there is a PR for it already.

@dacort
Copy link
Contributor

dacort commented Jul 28, 2023

Thanks for opening the issue @kaheicanaan! As @lmouhib mentioned, in progress just need to make sure it works across all the different clients. :)

I'm curious, does setting AWS_PROFILE environment variable work for you if you want to use a different profile? Or are you looking for functionality similar to the AWS CLI?

@kaheicanaan
Copy link
Author

Thanks for opening the issue @kaheicanaan! As @lmouhib mentioned, in progress just need to make sure it works across all the different clients. :)

I'm curious, does setting AWS_PROFILE environment variable work for you if you want to use a different profile? Or are you looking for functionality similar to the AWS CLI?

Oh, it works for me as well. I didn't notice that there is another way to change the AWS profile.

@monometa
Copy link

Hi,

I was wondering if there's any chance the following pull requests could be reviewed and merged to enable support for AWS profiles: #47 or #14? @dacort @lmouhib

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

4 participants