Storing Mediawiki Resources on AWS S3: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


Once this is in place and the extension is configured in `LocalSettings.php`. The extension also requires registration in `composer.local.json` followed by `composer update`.
Once this is in place and the extension is configured in `LocalSettings.php`. The extension also requires registration in `composer.local.json` followed by `composer update`.
== Back ups, archives and uploads ==
GoodSync is a viable option to archive the images locally. Create a synchronization job with the local directory on one side and the S3 bucket on the other. Enter access key and secret for a user that has access to the bucket.


== AWS storage ==
== AWS storage ==


Created an S3 bucket named `dbarchowsky-wiki-uploads` to serve as a location for user files for the wiki.
Created an S3 bucket named `dbarchowsky-wiki` to serve as a location for user files for the wiki.
 
=== Other storage options ===


Options:
* AWS S3, which works with the Mediawiki S3 extension.  
* AWS S3, which works with the Mediawiki S3 extension.  
* [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEFS.html Amazon EFS] and EBS.  
* [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEFS.html Amazon EFS] and EBS.  

Revision as of 16:05, 26 April 2022

Mediawiki AWS Extension

MediaWiki AWS extension enables uploads to AWS S3.

The extension page (and corresponding GitHub) have the best information about configuration.

This requires maintaining and AWS S3 bucket for the wiki images, and granting the wiki EC2 instance access to the bucket.

Once this is in place and the extension is configured in LocalSettings.php. The extension also requires registration in composer.local.json followed by composer update.

Back ups, archives and uploads

GoodSync is a viable option to archive the images locally. Create a synchronization job with the local directory on one side and the S3 bucket on the other. Enter access key and secret for a user that has access to the bucket.

AWS storage

Created an S3 bucket named dbarchowsky-wiki to serve as a location for user files for the wiki.

Other storage options

  • AWS S3, which works with the Mediawiki S3 extension.
  • Amazon EFS and EBS.
    • EFS is scalable physical storage which can be shared among multiple EC2 instances.
    • EBS is physical storage that is linked typically to a single EC2 instance.