Moodle is an open source learning management system (LMS) that supports distributed online learning. When implemented on AWS, Moodle can scale flexibly to optimize cost and maximize availability. We recommend separation of the application and database layers to enable autoscaling for elasticity. Instructors and students can focus on teaching and learning, and organizations can reduce administrative overhead by building a highly available Moodle architecture on AWS.