Docker, AWS and Ansible (Part 3 of 3)
In this article I am going to highlight how Docker, AWS and Ansible can come together to do the DevOps aspects of a software engineer’s job. If you are already familiar with the technology then just skip to the end of this article if you want to see the complete example, but I’d recommend you at least read the next two headings to understand the context.
Complete example code
Now I am going to show you how easy you can achieve all the things we talked about in this article. The following script will automate provisioning and decommissioning everything this article discussed in the previous section:
To run this script complete the following steps listed in that project’s README section on Deployment.
That’s it. The whole thing provisions from scratch in about 1 minute, but by the time the EC2 instances have registered themselves with ECS and the containers are started it will be closer to a couple of minutes.