Serverless Space Merchant

When I was younger, I played a browser-based game called Space Merchant. Space Merchant is a LAMP-stack game that was open sourced by it’s creators a few years ago.

As organizations move to AWS, a big part of what they consider is how they move there; whether it be replatforming, lift and shifting (either with or without a minimal viable refactoring), or making an application cloud native.

Combining a game I used to love with my passion for one of the major tasks of a cloud engineer, I decided to migrate SpaceMerchant to AWS.

This includes an initial “lift and shift” with a minimal viable refactoring to leverage managed services (such as RDS for MySql, an application load balancer for load balancing, and secrets manager for storing and consuming secrets securely).

Subsequently, I will move all database functionallity out of in-line PHP code and behind an API Gateway with Lambdas. In addition, I’ll put images behind CloudFront.

Finally, I’ll transition the database from MySql to DynamoDB where appropriate.

Project link: https://github.com/cpollard0/smr-serverless

Nifty tech tag lists fromĀ Wouter Beeftink