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

AWS credentials environment variable has changed #1027

Open
edgewood opened this issue Jan 3, 2019 · 0 comments
Open

AWS credentials environment variable has changed #1027

edgewood opened this issue Jan 3, 2019 · 0 comments

Comments

@edgewood
Copy link

edgewood commented Jan 3, 2019

s3cmd looks for the AWS_CREDENTIAL_FILE environment variable to find the AWS credentials in the absence of a s3cmd config file. However, newer versions of awscli (1.7.45 and later) use a different environment variable, AWS_SHARED_CREDENTIALS_FILE See
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

As a workaround, export AWS_CREDENTIAL_FILE=$AWS_SHARED_CREDENTIALS_FILE works for me with a very simple AWS setup, but there could be other changes to the file structure in other setups.

As an aside, I discovered this issue trying to use AWS credentials as a workaround for s3cmd's lack of support for the XDG basedir spec (#658).

ms-jpq added a commit to ms-jpq/s3cmd that referenced this issue Feb 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fviard pushed a commit that referenced this issue Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…AWS shared credential env var (#1365)
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