We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
aws-saml does not follow the environment variables that awscli is supporting (link):
a simple patch will fix this:
diff --git a/awscli_saml/assume_role.py b/awscli_saml/assume_role.py index 3d520a8..cb3a47b 100644 --- a/awscli_saml/assume_role.py +++ b/awscli_saml/assume_role.py @@ -19,8 +19,8 @@ def run(profile=None, region=None, session_duration=None, idp_arn=None, role_arn profile_name if profile_name == "default" else "profile {}".format(profile_name) ) - config_path = os.path.expanduser("~/.aws/config") - cred_path = os.path.expanduser("~/.aws/credentials") + config_path = os.environ.get("AWS_CONFIG_FILE") or os.path.expanduser("~/.aws/config") + cred_path = os.environ.get("AWS_SHARED_CREDENTIALS_FILE") or os.path.expanduser("~/.aws/credentials") config = configparser.RawConfigParser() config.read(config_path)
The text was updated successfully, but these errors were encountered:
Feel free to submit PR
Sorry, something went wrong.
PR submitted/approve/merged. Can we get a new version release containing those changes, please?
No branches or pull requests
aws-saml does not follow the environment variables that awscli is supporting (link):
a simple patch will fix this:
The text was updated successfully, but these errors were encountered: