I’m on my way to understand and configure continuous deployment system and I want to deploy the same repo to multiple EC2 instances using ssh. I have docker between circleCI and AWS so first I should make a container images and then deploy it to the multiple instances.
1)What should I write in circle.yml and .sh file to deploy same webservers to two EC2 instances?
2)How can I deploy parts of repo to different instances? (I’m going to have nginx load-balancer on one server and two nodeJS servers on two other instances.)