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

Region setting ignored in credentials file (and awscli doesn't need the setting at all) #709

Open
durka opened this issue Mar 4, 2024 · 0 comments

Comments

@durka
Copy link

durka commented Mar 4, 2024

I have two profiles in my credentials file.

The default profile works with buckets in the us-gov-east-1 region. The other profile (call it "east") only has buckets in us-east-1.

With aws s3 ls, this somehow all works automatically and transparently. However, when I try to do s5cmd --profile east ls $bucket, it fails:

ERROR "ls --humanize=true s3://REDACTED": InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records. status code: 403, request id: REDACTED, host id: REDACTED=

I added region = us-east-1 to ~/.aws/credentials, but contrary to the README, s5cmd apparently ignores this. Only setting AWS_REGION=us-east-1 in the environment will convince it to use the correct region, and then it is able to list the bucket.

@durka durka changed the title Region setting ignored in credentials file Region setting ignored in credentials file (and awscli doesn't need the setting at all) Mar 4, 2024
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