Setup Docker Swarm on AWS using Ansible & Terraform
Too Long; Didn't Read
This post is part of “<a href="http://www.blog.labouardy.com/manage-aws-vpc-as-infrastructure-as-code-with-terraform/" target="_blank"><strong>IaC</strong></a>” series explaining how to use <strong>Infrastracture as Code</strong> concepts with <strong>Terraform</strong>. In this part, I will show you how to setup a <strong>Swarm</strong> cluster on <strong>AWS</strong> using <strong>Ansible</strong> & <strong>Terraform</strong> as shown in the diagram below (1 <strong>Master</strong> and 2 <strong>Workers</strong>) in less than <strong>1 min</strong>: