-
Notifications
You must be signed in to change notification settings - Fork 0
Storing Files in AWS S3
-
Log into your AWS account or create a new one
-
Head to the S3 service and choose Create Bucket
-
Fill out a unique Bucket Name (also it should not contain any period '.' for directAccess to work) and click Create (all other defaults are OK)
-
Now head to the Identity and Access Management (IAM) service
-
Click the Users tab, then Create New User
-
Fill out at least one user name and make sure Generate an access key for each user is selected before clicking Create
-
Make sure to Download Credentials on the next screen
-
Now select the Policies tab, then Create Policy
-
Select Create Your Own Policy, fill out a Policy Name
-
Copy the following config in Policy Document, changing BUCKET_NAME for the name of the bucket you created earlier. (note: this is a little more permissive than we need, but it works for now)
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::BUCKET_NAME/*" ] } ] }
-
Make sure to Validate Policy first, then click Create Policy
-
Go back to the Users tab and select the user you created earlier
-
In Permissions, select Attach Policy and find the policy we just created to attach it