AWS file uploading setup
I'm trying to setup file uploading with AWS following this documentation https://docs.opensaas.sh/guides/file-uploading/ and I'm at this part (first image attached) but I'm getting a lot of access denied errors. Sorry if this is a stupid question, but has anyone found a way around this?
15 Replies
Hi @đź•ł. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry to hear that you're having trouble with setting up file uploading with AWS. Based on the knowledge sources provided, here are some steps you can follow:
1. First, you need to set up an S3 bucket and IAM user on AWS. Then, add these entries to your
.env.server
file:
(Source: Github Issue (open): Ability to serve and upload dynamic binary assets (images, pdfs) > Comments Part 1 (https://github.com/wasp-lang/wasp/issues/494))
2. Add the AWS SDK to your list of dependencies:
(Source: Github Issue (open): Ability to serve and upload dynamic binary assets (images, pdfs) > Comments Part 1 (https://github.com/wasp-lang/wasp/issues/494))
3. In your front end, set up the functions for downloading and uploading files:
(Source: Github Issue (open): Ability to serve and upload dynamic binary assets (images, pdfs) > Comments Part 1 (https://github.com/wasp-lang/wasp/issues/494))
If you're getting access denied errors, it's possible that there might be an issue with your AWS S3 bucket permissions or IAM user permissions. Make sure that your IAM user has the necessary permissions to access the S3 bucket and that your S3 bucket is configured correctly.
If you're still having trouble, you might find it helpful to check out some of the resources mentioned in Github Issue (open): Ability to serve and upload dynamic binary assets (images, pdfs) > Comments Part 4 (https://github.com/wasp-lang/wasp/issues/494), which provide more detailed information on how to set up file uploading with AWS and React.
I hope this helps! If you have any other questions, feel free to ask.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @đź•ł, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?I'm having the same problem can anyone help?
@Vinny (@Wasp) one for you
I'll take care of it
Hey @Ingvar20, can you share what kind of errors you are getting and where?
I’m having the same problem is this person above. After setting up an IMA user and creating an S3 bucket, when I go to the “security credentials”, I’m given a bunch of “don’t have access” errors all over the place which doesn’t allow me to create an access key
its stuck on this step
As a workaround, I solved this by adding the "IAMFullAccess" policy. There are probably more fine-grained permissions to set. 🙂
Probably something similar
Yup
Ohhhh
that fixed the issue, thank you!
great 🙂
Yeah, AWS is a pain to set up. Glad you got it working!
@Ingvar20 Thanks for reporting too, I'll try to recreate the documented steps and see what we need to add.
And @Jorge thanks for jumping in with a workaround!
Thanks for the help! 🙂
@sodic you're welcome, glad to help
Wohooo @Jorge, you just became a Waspeteer level 2!