Add support for AWS_PROFILE Environment Variable
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Tell us about your request
I would like to utilize the environment variable AWS_PROFILE to set my AWS profile.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I am trying to solve two problems:
- If I set the
AWS_PROFILEthis sets my profile for the AWS CLI and a number of other libraries - this is so common that I expect many AWS customers to use that variable with using the be cli tool as well. - Ensuring a consistent user experience across all AWS provided tooling
Are you currently working around this issue?
Yes.
How are you currently solving this problem?
I need to remember to use the --profile option when using this particular tool.
Additional context
Anything else we should know?
Attachments
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information).
@colinbjohnson , we'll consider adding support for AWS_PROFILE. In the meantime, you can use the AWS_EB_PROFILE env var: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html#eb-cli3-profile