The AWS S3 Integration plugin saves the files of RISE, and your Easy Backup backups, in a private Amazon S3 bucket instead of on your server. This article explains how to set it up, step by step.
Features
- Files of the site: new uploads (projects, tasks, tickets, notes, timeline, invoices, profile images and more) are saved in the bucket.
- Private bucket: files are shown and downloaded with links that expire. The bucket doesn't need to be public.
- Pasted images: images pasted into notes, comments and tickets keep working after their link expires.
- Big files: large files are uploaded in parts.
- Backups: AWS S3 is a backup destination of the Easy Backup plugin.
- Safe uploads: if AWS S3 can't be reached, the file can be saved on the server instead.
What you need
- RISE 4.2 or newer.
- An AWS account. You can create one at aws.amazon.com.
In AWS you will create 4 things: a bucket (where the files are saved), a policy (what RISE is allowed to do), a user (who RISE signs in as) and an access key (the user's key). It takes about 10 minutes.
Step 1: Create the bucket
- Sign in to the AWS S3 console.
- Click Create bucket.
- Bucket type: keep General purpose.
- Bucket name: enter a name, for example rise-files. Use small letters, numbers and dashes. The name must be unique in all of AWS. Avoid dots in the name.
- AWS Region: select the region closest to your server, for example US East (N. Virginia) us-east-1. Write it down: you need it in RISE.
- Object Ownership: keep ACLs disabled.
- Block Public Access settings: keep Block all public access checked. RISE doesn't need a public bucket.
- Keep the other options as they are and click Create bucket.
Step 2: Create the policy
The policy allows RISE to use this bucket only, and nothing else in your AWS account.
- Open the IAM console.
- In the left menu click Policies, then Create policy.
- Click the JSON tab, delete the text in the editor and paste the policy below.
- Replace my-bucket with your bucket name. It appears 2 times.
- Click Next. Policy name: enter rise-s3-access. Click Create policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::my-bucket"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::my-bucket/*"
}
]
}
The first part lets RISE check the bucket and its region. The second part lets RISE read, upload and delete the files inside the bucket.
Step 3: Create the user
- In the IAM console click Users, then Create user.
- User name: enter rise-s3. Leave Provide user access to the AWS Management Console unchecked. Click Next.
- Select Attach policies directly.
- Search for rise-s3-access and check it. Click Next.
- Click Create user.
Step 4: Create the access key
- In Users click rise-s3.
- Open the Security credentials tab. Under Access keys click Create access key.
- Select Application running outside AWS and click Next.
- Click Create access key.
- Copy the Access key and the Secret access key, or click Download .csv file. The secret is shown only once.
Step 5: Connect RISE
- In RISE go to Settings > Integration > AWS S3.
- Turn on Enable AWS S3.
- Paste the Access key ID and the Secret access key.
- Enter the Bucket name and select the Region of the bucket.
- Click Save & authorize. The plugin uploads, reads and deletes a small test file.
- The Status shows Authorized. From now on new files are saved in the bucket.
If you see an error instead, see the Problems table in AWS S3 integration - Settings and problems.
Step 6: Check that it works
- Upload a file to a note or a project.
- Open the file: it opens from an amazonaws.com link.
- In the AWS S3 console open your bucket: the file is there.