The worst part of trying to do this is that when you google things you end up in Amaxon’s dreadful documentation — it’s like there are no other links anywhere else.
I have a heavily documented linux shell script (series of them actually) you might find informative. email me email@example.com and i’ll send you a copy.
I actually made pretty good progress building something similar to what you describe. I haven’t gotten to the ‘automatically scale based on demand’ part yet. Since Amaxon bills credit cards directly , I would rather do that on the client’s dime.
I even got as far as getting RDP session to CentOS desktop on the AWS servers, which was very useful for some icky troubleshooting. Sometimes SSH is like brain surgery through a straw…