S3 File Sever doesn't work saves files to mongod

const S3Adapter = require('@parse/s3-files-adapter');
const s3Adapter = new S3Adapter({
  bucket: "my_bucket",
  directAccess: true,
  baseUrl: " https://buckeet.s3.us-west-004.backblazeb2.com", 
  baseUrlDirect: false,
  signatureVersion: 'v4',
  globalCacheControl: 'public, max-age=86400',
  region: 'us-west-004',
  s3overrides: {
    endpoint: "s3.us-west-004.backblazeb2.com", 
    accessKeyId: "xxxxxxxxxxxxxxxxxxxxxxx",
    secretAccessKey: "xxxxxxxxxxxxxxxxxxxxxxx"
  },
});

and then

config = {
appName: ...
.. 
  filesAdapter:s3Adapter
}

but it doesn’t save in my s3 bucket.

I used the CLI method where I had my required information in Environment variables setup.

see: Installing or updating the latest version of the AWS CLI - AWS Command Line Interface

then:

It was a bit of a struggle too for me as well but eventually got it working.

Make sure you have the proper Amazon credentials setup properly with IAM (Identity and Access Management) user and bucket policy setup right as well.