Auto uploading from S3
hi Cloudinary team,
I was evaluating auto upload from S3. I followed the conventions needed and setup a bucket in S3. The name is myawsbucket-jai-us-east-1.
I gave the permissions to my bucket too as suggested in this link https://support.cloudinary.com/hc/en-us/articles/203276521-How-do-I-allow-Cloudinary-to-read-from-my-private-S3-bucket-
I made the changes in my auto upload settings on cloudinary to pull images from this bucket when accessed with the url location like this https://res.cloudinary.com/dc5vhtcao/image/upload/remotes3/tiger1.jpg. But I see a 401 for some reason. Can someone help me fix this issue?
Thank you
Jai
-
Hi Jai,
I've taken a look at your example, the specific error is:
x-cld-error: You can't directly access the requested s3 bucket. For more information: https://cloudinary.com/documentation/upload_images#upload_from_a_private_storage_url
Just to confirm, could you help to verify the setup done on your S3 bucket is as described in these links:
https://cloudinary.com/documentation/upload_images#upload_from_a_private_storage_url
And to see the following parameter:
...
"Statement": [
{
"Sid": "AWSConsoleStmt-BUCKETNAME-cloudinary",
"Effect": "Allow",
"Principal": {
"AWS": "232482882421"
},
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::BUCKETNAME/*"
}
...Hope this helps.
0
Post is closed for comments.
Comments
1 comment