Skip to content

⬆ Example Project: Amazon S3 uploads via Rails 5 ⬆

Notifications You must be signed in to change notification settings

nbolser/aws-shrine-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

  1. Run bundle install
  2. Setup an Amazon S3 bucket named aws-shrine-upload or something unique to your region.
  3. Setup an IAM user on the S3 bucket above with the following in-line policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1497455010000",
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:PutObject",
                "s3:PutObjectAcl",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws:s3:::aws-shrine-upload/*"
            ]
        }
    ]
}
  1. Fire up the rails server and visit localhost:3000 and start uploading via the form!

Documentation

About

⬆ Example Project: Amazon S3 uploads via Rails 5 ⬆

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published