1. Home
  2. TutorPro GOLD Edition
  3. Admin Environment Settings
  4. Amazon s3 Settings

Amazon s3 Settings

With TutorPro GOLD, you can choose one of two locations where authors can upload videos – Amazon S3 or Local Server. If you choose to have users upload videos to Amazon s3, then you MUST configure your s3 bucket settings.

First off, if you do not have an Amazon Web Service account, you need to create one here. Then you can follow the following instructions to create a bucket

To make sure that your application can read videos from your bucket, you need to apply a policy that allows for public access to the videos. The following policy is used in the demo site. Feel free to copy it and use in your bucket. If your videos are not publicly available, the application will throw a Permissions error, so make sure you test the policies and that it works. If you use the policy below, please replace my-bucket-name with your actual bucket name.

{
  "Version": "2008-10-17",
  "Statement": [{
     "Sid": "AllowPublicRead",
     "Effect": "Allow",
     "Principal": {
       "AWS": "*"
     },
     "Action": [
        "s3:GetObject",
        "s3:DeleteObject"
     ],
     "Resource": "arn:aws:s3:::my-bucket-name/*"
   }]
}

You can Read more here on different bucket policies and how to use them

When you bucket is all set, you will need to provide TutorPro GOLD with the following entries in you .env file:

AWS_KEY
AWS_SECRET
AWS_REGION
AWS_BUCKET

To obtain the AWS_KEY and AWS_SECRET`, read this guide

The AWS_REGION is the region code of your Amazon s3 bucket. Please see here a list of codes and make sure you use the region code, NOT the Region name. eg use us-east-2 if your region is `US East (Ohio).

Was this article helpful to you? Yes No

How can we help?