Amazon S3 bucket

Repositories ::: repository_s3bucket
Maintained by RenaatRenaat Debleu
S3 folder (bucket) repository.
Latest release:
92 sites
153 downloads
11 fans

Instead of giving all users access to your complete S3 account, this plugin makes it possible to give teachers and managers access to a specific S3 folder (bucket).

Multiple instances are supported, you only have to create a IAM user who has read access to your S3 bucket (but also to your S3 root folder).

This plugin makes it possible to keep large files completely outside your Moodle installation, these files are served to the students using safe urls (urls that are only accessible for a limited time).

The latest versions are depending on the local_aws plugin.  However, if you want to use the latest sdk version, you will have to use the eWallah version that supports all new regions.

build status Coverage Status

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5

Contributors

Renaat
Renaat Debleu (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Renaat
    Mon, Nov 9, 2020, 4:40 PM
    The upload option was removed some years ago, it was almost never used and there are multiple tools available who do this job better (no upload limit) and faster (multiple channels without the step to copy the files to your server and move the files away to S3).

    The implementation to restrict access based on user/group/course/category/keyholder was planned from the beginning. After so many years I'm still searching for a way to finance this feature.
  • Thu, May 27, 2021, 8:26 AM
    Hello,
    I can't see the any large size video files in folders of my bucket through moodle, while adding video to content page.
    I'm receiving error message "No files available".

    What should I do.

    I've followed all procedures.

    Created the bucket. Properly used all keys.

    I'm able to access all folders and image files in the bucket but can't see video files.
  • Renaat
    Sun, May 30, 2021, 9:41 PM
    Hello Omlet,

    When you can see the folders and images and no videos - you are trying to add an image to your content page, Try adding a Moodle media file, then all images should be hidden and only folders and videos will be shown.

    If you still do not see any videos, check if your media files are using a simple storage engine (Standard - One Zone-IA - Reduced Redundancy - ...) as this plugin skips archives that have the DEEP_ARCHIVE or GLACIER attribute.

    R
  • Tue, Jun 8, 2021, 4:35 PM
    Hi Reenat!

    I am having and issue with the update to 3.9. When I choose a file from my S3 bucket, and click at Save and return to course button, always appears the same error:
    Error
    Cannot read file. Either the file does not exist or there is a permission problem.
    The IAM credentials are fine and I can see all the files. I updated the local_aws pluginto the eWallah version too... If I downgrade to the older version then the plugin works... Any suggest?

    Thanks a lot!
  • Renaat
    Tue, Jun 8, 2021, 9:50 PM
    Hello Juandi,

    THX for the problem report. I could reproduce the error and I am now uploading a fixed version.
    Could you use in the future the Bug tracker to report problems? More bells start ringing when a bug is found.

    R
  • Renaat
    Wed, Jun 9, 2021, 12:35 AM
    Hello Juandi,

    it seems I cannot configure the new version of this plugin to work with Moodle 3.9 until MDLSITE-6520 is fixed. So stick for the moment to the older version.

    Greetings,
    R
  • Tue, Jul 6, 2021, 8:54 PM
    Thanks for this plugin Renaat. I was able to see the folders on AWS S3 moodle and set some videos as links on a course. My issue though is that when I tried to playback the video it seems AWS S3 video file link is not loading on the course. When I tried to open it using the link only, it gave an AWS error of
    NoSuchKeyThe specified key does not exist.
    It seems that file is missing but when I tried to generate the file link thru AWS S3 website itself its playing normally.

    I'm using the latest version of moodle (newly installed) and AWS SDK eWallah version.
  • Wed, Jul 7, 2021, 4:09 PM
    Ok, we found the culprit, it seems the plugin does not generate the correct presigned URL if the files/bucket are encrypted with server-side encryption (SSE) or S3 managed keys (SSE-S3). After turning that off on the bucket and uploading a non-encrypted file, the NoSuchKey is gone and the video file is now loading/playing. I still wish we can have SSE or SSE-S3 use in the future.
  • Renaat
    Wed, Jul 7, 2021, 4:17 PM
    Hello Sonny,

    Thanks for the update.

    Can you add your SSE wish in the issue tracker?

    Greetings.
    R
  • Sat, Jul 17, 2021, 4:00 AM
    I just tried to install this plugin, but now I'm not able to get access back into the moodle server. I get a "This page isn’t working right now" http error 500
  • Renaat
    Sat, Jul 17, 2021, 5:03 PM
    Hello Frank,

    It seems to be you tried to install the plugin without the dependent local_aws plugin. Delete the plugin or install the dependent plugin.
    R
  • Fri, Jul 23, 2021, 1:13 AM
    Does it work with 3.11? Also, could you just limit the aws user/role created for the repository to only have access to the S3 buckets you want.
  • Renaat
    Fri, Jul 23, 2021, 4:03 PM
    Hello Frank,

    This plugin supports Moodle version 3.9, 3.10 and 3.11. Limiting the AWS user created for the repository has to be done in AWS and not in Moodle, otherwise it simply would not be possible that teachers could add private buckets.
    R

  • Tue, Aug 31, 2021, 2:56 PM
    Good day

    I installed the local_aws plugin as required, but after installing this plugin I get the following error:

    Fatal error: Cannot redeclare Aws\manifest() (previously declared in phar:///var/www/moodle/html/lib/aws.phar/Aws/functions.php:385) in /var/www/moodle/html/local/aws/sdk/Aws/functions.php on line 320

    Do you perhaps have any advice in this regard?

    Thanks for the great plugin.

    Kind regards
  • Renaat
    Tue, Aug 31, 2021, 11:22 PM
    Hello Jaco-Louis Kruger,

    THX for your feedback.

    This plugin does not use the aws.phar file, but the local AWS sdk plugin. Probably you have another plugin installed that does rely on the aws.phar file in the Moodle lib directory. Because both sdk's are doing the very same thing, you cannot use both, and you receive a "Cannot redeclare fatal error".

    Or you can remove the aws.phar file or you can try to remove the local/aws plugin and rewrite the plugin to use the lib/aws.phar file, but that will be some work....

    R
1 2 3
Please login to post comments