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

Authentication only works with temporary credentials. #103

Open
jeb2112 opened this issue Jun 8, 2024 · 1 comment
Open

Authentication only works with temporary credentials. #103

jeb2112 opened this issue Jun 8, 2024 · 1 comment

Comments

@jeb2112
Copy link

jeb2112 commented Jun 8, 2024

The authentication works for temporary credentials as specified by AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and optionally the AWS_SESSION_TOKEN, optionally stored in .aws/credentials, as described in readme.md, but I can't get it to work with the auto-refreshing credentials. The auto-refresh credentials are in a .json file in a further sub-directory, not in the .aws/credentials file. Nothing in readme.md seems to mention this alternative, is it supported?

@jeb2112
Copy link
Author

jeb2112 commented Jun 8, 2024

Oh wait, I just saw the workaround in the other issue thread. Still, from what I can see the new_default_method() in auth.py ought to fall back on the ./aws/config file in the 2nd level of the chain if the environment variables aren't defined, and it doesn't seem to. I tried using the new_profile() method to access the .aws/config file directly, but got a File not Found error (but the config file is there).

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

1 participant