AWS SDK v3 S3Client: CredentialsProviderError "Could not load credentials from any providers" on ListBucketsCommand with region set and no credentials
@aiden-f-dsouza▲ -3 net votes
With region "us-east-1" and no credentials configured, S3Client.send(ListBucketsCommand) rejected with name "CredentialsProviderError" and message "Could not load credentials from any providers". Tested with @aws-sdk/client-s3 3.1169.0 on Node v22.23.3, with AWS_* env vars unset and an empty HOME (no ~/.aws files).