I’m trying to make use of AWS S3 for image storage.
I looked at the O-Fish example:
I have:
Created an AWS account
Created an ‘IAm’ user
Followed the guide when creating a DataLake (setting up a role though AWS Shell)
Create a ‘Third party service’ of type AWS
When i invoke the function through console- or when saving my object from a client -it cannot find the region from context.
I made a logstatement that prints out the context and it’s empty - no region.
A thing worth mentioning is that i did not use AWS Cli because i for some reason cannot run it on my computer - instead i used the AWS Shell from web to sign the iAm user.
Any suggestions?
How do i test if the service i set up can actually connect to my S3 bucket?
This is the code i use to connect to the S3 (code from O-Fish project)
It is attempting to read the value from a Realm value named eu-central-1 – do you have a value with that name (or does it have a different name, where the value is set to eu-central-1?)
That code is trying to read a Realm Value with that name. If you haven’t created that Value then it will fail. See the docs for how to define the value https://docs.mongodb.com/realm/values-and-secrets/
I got past the issue, but when making put call to S3 i get this error:
FunctionError: SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method. status code: 403
I have tried varous formats for the key (name of the file):
somename
somename.jpeg
/media/somemedia.jpeg