question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect storage to external AWS S3 bucket

See original GitHub issue

Improve documentation

Link

https://github.com/supabase/storage-api

Describe the problem

We want to help everybody who wants to hosting their own storage module. In our case, we need to connect a k8s self hosted supabase deployment with an AWS S3 bucket. When we surfing the documentation, we facing at a link to how we can create a IAM User to access through aws-cli or aws-sdk, but we never read about how we can configure the storage container.

We take a look at the code searching for something like AWS_ACCESS_ID, or SECRET_ID but nothing comes up. After that, I understand that we have to “upload” a credentials file to the container in order to authenticate aws-sdk commands.

And finally, we found the solution!

Describe the improvement

You have to save a credentials file at /root/.aws in the storage container to be authenticated. You have to upload a file at /root/.aws/credentials with:

[default]
aws_access_key_id = xxxxxxxxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
captainR0bbocommented, Dec 19, 2022

Awesome! Didn’t expect to get any sort of response. The new Docs site does look great!

1reaction
iniancommented, Dec 19, 2022

We rebuilt the docs website from ground up recently. Appreciate the feedback, will share with the team that the self hosting docs aren’t discoverable in the new site.

We encourage folks to self host if the hosted platform doesn’t meet their requirements. We recently added storage to the self hosted dashboard and even new features like the image transformations feature are already available in the self hosted version. In fact, there are features like rate limiting and webhooks support for storage where the platform version lags the self hosted version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Methods for accessing a bucket - AWS Documentation
You can access your bucket using the Amazon S3 console. Using the console UI, you can perform almost all bucket operations without having...
Read more >
Option 1: Configuring a Snowflake Storage Integration to ...
Step 2: Create the IAM Role in AWS¶ ... In the AWS Management Console, create an AWS IAM role to grant privileges on...
Read more >
Cloud and External Storage Integration - Label Studio
Set up an S3 connection with IAM role access. If you want to use a revocable method to grant Label Studio access to...
Read more >
How to Use a Bucket Shared by Another Amazon S3 User
To connect to an External Bucket (video tutorial): ; Click Buckets->Add External Bucket. You can also use Ctrl+E keyboard shortcut · Enter name...
Read more >
Snowflake: Integration with AWS S3 - Medium
Integration objects help connect external storage such as AWS S3 with Snowflake. AWS IAM web service can be used to provide fine-grained access...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found