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
Don't write a new aws config file when importing #259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a functional test to ensure the file is not created and I can still import profiles, both passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overall changes here look good to me -- both code-wise, and functional testing.
One question I have outside of the review is: if a I believe that's expected behavior with aws-vault, but the larger question I have on my mind is, we completely skip the aws-vault importer when Do you think we should explore a flow that imports credential from aws-vault, if the credential exists, along with region sourced from AWS_REGION envvar, again if it exists? |
Good question! We are already checking for the
They can be used without a region except for when using MFA, in which case we error out if we can't find a region. |
Overview
It seems the aws-vault importer is creating the
.aws/config
file if it doesn't exist. We should make sure that importers only read.Type of change
How To Test
op plugin init aws
and import credentialsChangelog
AWS Shell Plugin importer never creates a
.aws/config
file if one does not exist already.