Configuring a custom endpoint

Using Yandex, DigitalOcean, or any other S3-compliant storage service together with gatsby-plugin-s3


To use Yandex S3 or any supported AWS services you need only to change region & customAwsEndpointHostname params (provided by service) before deploy. Yandex example:

{
    bucketName: 'YOUR_BUCKET_NAME',
    region: 'us-east-1',
    customAwsEndpointHostname: 'storage.yandexcloud.net'
}

Endpoint hostnames

Here are some popular S3-complaint services and their hostnames that you'd need to use.
We'll also link to their documentation with more info on what endpoints to use.

  • Yandex: storage.yandexcloud.net
  • DigitalOcean spaces: nyc3.digitaloceanspaces.com - replace nyc3 with the region of your choice
  • Oracle Cloud: mynamespace.compat.objectstorage.us-phoenix-1.oraclecloud.com - replace mynamespace with your namespace, and us-phoenix-1 with your region.
  • Rackspace Cloud: see the list here
  • IBM Cloud s3.us.cloud-object-storage.appdomain.cloud (replace us with either eu or ap)
  • Dreamhost Dreamobjects: objects-us-east-1.dream.io
  • Linode Object Storage: us-east-1.linodeobjects.com - replace us-east-1 with the region your bucket is located.

If you have any endpoint hostname you'd like to add to this document, go here.

+

Hey! 👋 Was this page helpful?

We're always looking to make our docs better, please let us know if you have any suggestions or advice about what's working and what's not!

© Jari Zwarts 2020