Amazon S3 bucket returning 403 Forbidden
13:30 01 Nov 2014

I've recently inherited a Rails app that uses S3 for storage of assets. I have transferred all assets to my S3 bucket with no issues. However, when I alter the app to point to the new bucket I get 403 Forbidden Status.

My S3 bucket is set up with the following settings:

  • Permissions

    Everyone can list

  • Bucket Policy

    {
     "Version": "2012-10-17",
     "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::bucketname/*"
        }
     ]
    }
    
  • CORS Configuration

    
    
        
            *
            GET
            3000
        
        
            https://www.appdomain.com
            PUT
            POST
            DELETE
            *
        
    
    
  • Static Web Hosting

    Enabled.

What else can I do to allow the public to reach these assets?

amazon-web-services amazon-s3