- AWS Management Console
- AWS: Installing the AWS SDK for Ruby
- AWS: Configuring the AWS SDK for Ruby
- Heroku: Using AWS S3 to Store Static Assets and File Uploads
- Heroku: Directo to S3 Image Uploads in Rails
- Possible improvement?
yenius--rails6-api--s3-bucket-dev
us-east-2
Objects can be public
{ "Version": "2012-10-17", "Id": "DevBucketAdminPolicy", "Statement": [ { "Sid": "DevAdminStatement", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::157703510654:user/yenius--rails6-api--s3-admin-user" }, "Action": "s3:*", "Resource": [ "arn:aws:s3:::yenius--rails6-api--s3-bucket-dev/*", "arn:aws:s3:::yenius--rails6-api--s3-bucket-dev" ] } ] }[ { "AllowedHeaders": [ "Authorization" ], "AllowedMethods": [ "GET", "POST", "PUT" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [], "MaxAgeSeconds": 3000 } ]
yenius--rails6-api--s3-bucket-prod
us-east-2
Objects can be public
{ "Version": "2012-10-17", "Id": "ProdBucketAdminPolicy", "Statement": [ { "Sid": "ProdAdminStatement", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::157703510654:user/yenius--rails6-api--s3-admin-user" }, "Action": "s3:*", "Resource": [ "arn:aws:s3:::yenius--rails6-api--s3-bucket-prod/*", "arn:aws:s3:::yenius--rails6-api--s3-bucket-prod" ] } ] }[ { "AllowedHeaders": [ "Authorization" ], "AllowedMethods": [ "GET", "POST", "PUT" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [], "MaxAgeSeconds": 3000 } ]
yenius--rails6-api--s3-admin-user
yenius--rails6-api--s3-admin-group
yenius--rails6-api--s3-admin-group-policy
the managed policy is attached to the group, and the user is a member of the group
{ "Version": "2012-10-17", "Statement": [ { "Sid": "YeniusRails6ApiS3AdminGroupPolicy", "Effect": "Allow", "Action": "s3:*", "Resource": [ "arn:aws:s3:::yenius--rails6-api--s3-bucket-dev", "arn:aws:s3:::yenius--rails6-api--s3-bucket-dev/*", "arn:aws:s3:::yenius--rails6-api--s3-bucket-prod", "arn:aws:s3:::yenius--rails6-api--s3-bucket-prod/*" ] } ] }