Our installation instructions recommend using Ubuntu 14.04. We make sure everything works fine on our recommended platform. If you go off-script, we assume you’re capable of understanding the consequences and handling whatever roadblocks might come up.
Given you’re on EC2, it’s a matter of a couple of minutes to spin up a new instance running a supported OS, and copying over the discourse install directory to get you back up and running again.