All the Docker Swarms we have created so far are wonderful to use in development or to experiment or for demonstration purposes. If we want to create a swarm that can be used as a production environment where we run our mission critical applications, though, then we need to create a, I'm tempted to say, real swarm in the cloud or on-premise. In this book, we are going to demonstrate how to create a Docker Swarm in Amazon AWS.
One way to create a swarm is by using Docker machine (DM). DM has a driver for Amazon AWS. If we have an account on AWS, we need the AWS access key ID and the AWS secret access key. We can add those two values to a file called ~/.aws/configuration. It should look like the following: ...