Fieldtype

Archived
Forum
(read-only)

Simple S3 Uploader

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From eMarketSouth

     

S3::listBuckets(): [AccessDenied] Access Denied

Support Request

ignitionint
ignitionint

Having trouble getting this addon to connect to my S3 bucket. I’m able to connect to it using Transmit and the same access and secret key. But no matter what I do I can’t stop getting Access Denied.

Here’s my bucket policy. Note the first statement’s ListBucket action.

{
 
"Version""2008-10-17",
 
"Id""Policy1424306536431",
 
"Statement"[
  {
   
"Sid""",
   
"Effect""Allow",
   
"Principal""*",
   
"Action""s3:ListBucket",
   
"Resource""arn:aws:s3:::bucket"
  
},
  
{
   
"Sid""",
   
"Effect""Allow",
   
"Principal""*",
   
"Action"[
    
"s3:DeleteObject",
    
"s3:GetObject",
    
"s3:PutObject"
   
],
   
"Resource""arn:aws:s3:::bucket/*"
  
}
 ]
ignitionint
# 1
ignitionint

Bump.

ignitionint
# 2
ignitionint

I was able to get the s3 fieldtype to work by using my root credentials. Even though I’m confident I set up additional users with appropriate access to the s3 bucket it still doesn’t work.

Has anyone gotten it to work with an IAM user that’s not root?

eMarketSouth
# 3
Developer
eMarketSouth

Hello,

Simple S3 Uploader uses your server’s Curl library to contact Amazon’s servers.  You might see this problem if your server doesn’t allow unprivileged users to contact outside services.  You mentioned S3 Uploader works with the root user, that suggests you might have a permissions problem.

Sincerely,
Jack Scott