-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow AWS profile to be specified in the CLI #10
Comments
Yeah that should work. You can pass the flag '--profile myprofile' to choose a profile. Setting env var AWS_PROFILE should work too, and other usual env vars that AWS SDKs read (eg AWS_ACCESS_KEY_ID). |
Great to hear, but for some reason it's not working. Partial dump of my credentials file:
Output of command:
Note how towards the bottom, it says that the Interestingly, using the environment variable worked fine:
|
Okay good to know AWS_PROFILE env var works. Will check why the --profile flag doesn't work. Maybe I should just remove the flag and document the use of AWS_PROFILE more clearly. |
Thanks, @ottokruse! All things being equal, I would say the profile flag is the cleaner, more standard way to accomplish this. Thanks again for the amazing module!!! |
Since the app is leveraging AWS code, is it possible to leverage environment variables and files to specify the AWS credentials so that this can be run from the command line with the AWS profile instead of having to write the code? Thx
The text was updated successfully, but these errors were encountered: