AWS used to be running on a highly customized Xen hypervisor.
For best performace this required the operating system to be built specifically for Xen to work.
They now have some hardware that is using the KVM hypervisor on some of their hardware and now support a more generic operating system.
You should be able to take a generic vm and be able to run it.
I would still recommend building it from scratch as there are differences in how network and storage are configured so while you can get it to work it is going to be easier to just move what you have.
I don’t use the VM, I have the software running under a normal user on my server.
I believe the vm is docker based, are you able to move the docker containers from one machine to another? could you move these from your local vm to a vm running docker in aws?