Skip to content
This repository was archived by the owner on Feb 12, 2021. It is now read-only.

Custom endpointΒ #233

@Jimbly

Description

@Jimbly

With Backblaze releasing an S3-compatible API, I've found the need to specify a custom endpoint on some of my "S3" connections. It looks like nothing in particular is exposed, but was able to get it to work with this code, sharing in case others find this useful:

const s3 = require('@auth0/s3');

let client = s3.createClient({
  s3Options: {
    'accessKeyId': '...',
    'secretAccessKey': '...',
    'region': 'us-west-001',
    'endpoint': 's3.us-west-001.backblazeb2.com',
  },
});

Would be nice to have a little documentation in the README on what can go into s3Options, I tried following the link, and it was pretty indecipherable, had me doing a bunch of new s3.AWS.Endpoint(endpoint) stuff that, though worked, apparently was not necessary!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions