Storing Mediawiki Resources on AWS S3: Difference between revisions
No edit summary |
Tag: wikieditor |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Mediawiki AWS Extension == | == Mediawiki AWS Extension == | ||
[https://www.mediawiki.org/wiki/Extension:AWS MediaWiki AWS] extension enables uploads to AWS S3 | [https://www.mediawiki.org/wiki/Extension:AWS 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`. | |||
=== Installing the extension === | |||
Confirm this information is up-to-date at the link AWS extension docs linked above, but as of MW version 1.38.2 it's necessary to run the `composer.json` file found within the AWS extension directory when installing MW. | |||
This is done by adding a `composer.local.json` file to the root of the MW distro. MW's `composer.json` will include `composer.local.json` which in turn includes the AWS extension's `composer.json`. | |||
Note that it does not work to add this `composer.local.json` file to the `wiki_config/` directory in the littled_wiki project root. The file must be copied to the MW distro, e.g. `mediawiki-1.3x.x/`. | |||
== 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 | 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. | * 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. | ||
| Line 13: | Line 32: | ||
** '''EBS''' is physical storage that is linked typically to a single EC2 instance. | ** '''EBS''' is physical storage that is linked typically to a single EC2 instance. | ||
[[Category: | [[Category:MediaWiki]][[Category:S3]][[Category:AWS]] | ||
Latest revision as of 04:24, 25 August 2022
Mediawiki AWS Extension[edit]
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.
Installing the extension[edit]
Confirm this information is up-to-date at the link AWS extension docs linked above, but as of MW version 1.38.2 it's necessary to run the composer.json file found within the AWS extension directory when installing MW.
This is done by adding a composer.local.json file to the root of the MW distro. MW's composer.json will include composer.local.json which in turn includes the AWS extension's composer.json.
Note that it does not work to add this composer.local.json file to the wiki_config/ directory in the littled_wiki project root. The file must be copied to the MW distro, e.g. mediawiki-1.3x.x/.
Back ups, archives and uploads[edit]
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[edit]
Created an S3 bucket named dbarchowsky-wiki to serve as a location for user files for the wiki.
Other storage options[edit]
- 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.