Here is what I want to achieve. I write code(Java, NodeJs, Go) to tell the program
- which Cloud Provider to choose- AWS/Azure
- write code to create a instance , lets say AWS - EC2 instance under which region, security pair, ports, volumes.
- Then once the VM is created , write code to ssh into the system , do yum update , install docker, do other stuff and fetch certain containers. Basically ready the system for future use but mostly I would want to deploy Docker containers on these VMs later.
My question is - to achieve the above scenario which tools should be used . I understand for provisioning of the VMs in AWS , I can use the SDK, so applies for other vendors as well , but for the setup part what would be the preferred mechanism ?