Staging from Classic Virtual Machines to Amazon ECS
Publish the application to Amazon ECS.
Follow the guide on Deploying an Application to a Docker Container up to "Create result file for the deployment step" (at the end of step 6).
Note: Do not create the
This would cause the un-deployment of the application from the deployment zone configured with "Classic Virtual Machines" hosting technology.
Verify the status of the application before switching it between deployment zones.
Check that the application modules are accessible at the following address:
Note: This step is targeted at simple and fast connectivity validations. Until the deployment process is completed, i.e. until you create the
.deploydoneresult file in the
resultsfolder, no other deployment can be completed.
Also, keep in mind that the deployment process will timeout after 30 minutes.
Complete the switch between deployment zones.
When you're ready to replace the old "blue" service with the new "green" service, call the ModifyListener API operation to swap the listener's rules for the target group rules.
Find more information about the blue-green deployment strategy on Amazon blogs.
Upgrading application versions on Amazon ECS
Amazon ECS performs rolling updates by default when you update an existing Amazon ECS service. It will instantiate the new container replicas and then stop the previous ones. Both the old and the new version will coexist during a small time frame, and then Amazon ECS will start draining old container connections.
Therefore, you will get a no-downtime application version upgrade with no need for further actions.