-
Notifications
You must be signed in to change notification settings - Fork 7
AWS Setup
Setting up AWS is never easy. To make it a little easier, we provide a rake task that will:
- Create a new S3 bucket
- Create a new IAM user that has access only to the bucket created in step (1)
- Set up the appropriate CORS restrictions on the bucket
- Output configuration suitable for appending to your
.env
file
This rake task can be run as rake s3:create_bucket
. If, when running
bin/setup
, you do not have a configuring S3 setup in your
.env.development
file, this rake task will be run automatically and
the configuration appended to your .env.development
file.
The only hard thing here is that for the rake task to work, you will need to provide it with an access key that has sufficient permissions to create a new S3 bucket and IAM user.
The simplest way to do this is to create a new root access key. This is not a best practice, but you can delete the key after you use it to create the new IAM user.
You will need an active AWS account to get started. Visit https://aws.amazon.com/ to get started.
To get started, click on you account name dropdown and select “My Security Credentials”
Click on “Continue to Security Credentials”
Expand the “Access keys”
Click “Create New Access Key”
Click “Show Access Key”
Use the displayed access key to answer the prompts when running
bin/setup
or rake s3:create_bucket
Delete the access key.