Ever thought about Docker + ECS?
Or use any deployment service live DeployHQ or DeployBot. These are doing a good job with what you are asking for.
Do not reinvent the wheel and do smth. custom, there are so many tools and services out there that can help you!