react-native-aws3 icon indicating copy to clipboard operation
react-native-aws3 copied to clipboard

403 Error - Missing IAM User?

Open gustavoadt opened this issue 7 years ago • 2 comments

Hello there,

First of all, thank you and good job.

I want to access my android gallery and choose a picture for my avatar, upload it from my phone to my bucket. At first, I used the AWSSDK.Core and AWSSDK.S3 for .NET and succeeded, only not being able to identify the real file path since .NET is my server (probably would have to get the byte64 data of the picture and then stream it before sending to the bucket).

With this solution I was able to upload some pictures and then suddenly it stopped with the 403 Error, that I assume Amazon blocked because here I am missing the , which I think it's the only difference between this package and the AWSSDK for NET.

Any thoughts?

gustavoadt avatar Dec 08 '17 16:12 gustavoadt

I recently stuck with the 403 Error as well. However, I changed the IAM policy for the user and set action to this following.

        "Action": [
            "s3:GetObject",
            "s3:GetObjectAcl",
            "s3:GetObjectVersion",
            "s3:PutObject",
            "s3:PutObjectAcl",
            "s3:PutObjectVersionAcl"
        ]

Hope this help.

billycoco6 avatar Jan 07 '18 12:01 billycoco6

getting 403 even after setting action as suggested

gaurav-infro avatar May 05 '21 18:05 gaurav-infro