Having trouble starting with AWS S3

I’ve been going all in on the t3 stack and serverless solutions for my latest hobby project. So far: * I’m more excited to learn a new stack than I’ve been in years. * The services have been simple to set up and easy to use. * My productivity is through the roof. Here’s what I wanted to do with S3: * Set up a single bucket * Use pre signed uploads to let the client upload an mp4 to the bucket * Receive a token back * Store the token in the DB * Later, the server can resolve the token to a URL and serve that URL to the client for fetching the file. This seemed simple, but in reality, doing this with AWS has involved 4 separate tutorials, installing 3 command line utilities, creating 2 separate Amazon accounts (one for root, one IAM), and has still led to hours of troubleshooting permissions errors. Admittedly, I don’t know what I’m doing, but I really wanna get back to feature work. Are there any simpler services I can use for this? Ideally I’d be able to set up an account in under 10 minutes, throw some keys in my .env file, maybe install a library, and I’d be good to go. If I was running my own server, this would be a dead simple feature and I just wanna move on.
4 Replies
Brendonovich
Brendonovich2y ago
I recently tried using S3 and just gave up after 5 minutes, I'd recommend using Supabase's storage offering. Much simpler to configure. There's plenty of other storage providers tho
Eoghan
EoghanOP2y ago
I was hoping to eventually make this project self-hostable, so maybe looking at Supabase now would be a good way to get started on that.
Brendonovich
Brendonovich2y ago
Or u could self-host minio, that's decently ok to work with
Lopen
Lopen2y ago
I will suggest using regular next api for anything s3 related I wasn't able to get presigned url to work So i used next api to do the uploads directly and then return the url which was much more easier
Want results from more Discord servers?
Add your server