Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

terraform-ec2-docker-swarm

Docker Swarm EC2 cluster Terraform infrastructure on AWS

Main Targets:

  • highly available environment
  • docker swarm based

Docker Swarm is an easy step from Compose and it's a good hosted cluster solution as Kubernetes becomes easier and easier to configure, use, more containerd tooling etc. and you're ready to transition to it.

Docker Swarm is a good middle ground, you know what's happening (as you can ssh into the vm and run docker ps, docker logs, docker inspect, docker attach, docker exec etc).

This repo is a terraform definition which should be a good start as it's focused on high availability, ease of use and allows for vertical scaling with a configuration change and a terraform plan + apply command.

Feedback is welcome, feel free to open an issue.

(note: set up an extra vM for swarm master quorum for the standard swarm production configuration)

Configure

Configure terraform to work with your AWS account

Replace https://github.com/makevoid/aws-infra-1/blob/master/init.tf#L21 with your ssh key name

Run

rake

This will configure the docker swarm aws infrastructure via terraform and plan / apply straight away.

Enjoy your fresh docker swarm cluster :)

Check out the Azure version: https://github.com/makevoid/azure-terraform-swarm-template

Open Source

Feel free to open an issue to see if this worked for you or not, if you think you can contribute, open a pull request with your desired improvement.

Have fun!

@makevoid

About

Docker Swarm terraform infrastructure on aws

Topics

Resources

Releases

No releases published

Packages

No packages published