TI1 - 2022/23 - Should do - Moodle Preview in the Cloud

Size

Large

Budget Epic Name

CTP Maintenance 

Jira Epic

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

Feature LeadDavid Kwaw

This is a Ops & Dev training opportunity on AWS native services, focused on non-prod services before we do prod in later TIs.

We should take the opportunity in TI1 22/23 to transition Moodle Preview in the Cloud to be fully AWS cloud based.


Database should preferably be aurora serverless v2 due to the auto-scaling fitting the usage model for preview.

We should have Redis caching as standard on all the instances, Preview can be quite slow at times and this would help big time. Use Elasticache?

We should have Mailhog setup as standard. Moodle code directory should not be writable by Apache - no updating from web interface.


Generally would be useful to re-use from https://github.com/moodlehq/moodle-docker as the community continues to build upon it - our devs use it and the CI runners do to, so would ensure consistency in the environments. But likely will have to use the underlying Docker images e.g https://github.com/moodlehq/moodle-docker/blob/master/base.yml#L4 rather moodle-docker itself.


Worth also considering how we - Ops & Devs - could ssh into the running containers for individual preview sites.