Giter Site home page Giter Site logo

boumer / terraform_lightsail-docker-swarm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from katharostech/terraform_lightsail-docker-swarm

0.0 1.0 0.0 4 KB

Terraform config for deploying a Docker Swarm instantly on AWS Lightsail instances

License: The Unlicense

HCL 100.00%

terraform_lightsail-docker-swarm's Introduction

Terraform Lightsail Docker Swarm

A Terraform configuration file for standing up a Docker swarm on AWS Lightsail.

The configuration also installs Portainer and can point a Route53 DNS at the cluster so that you can access it.

Dependencies

Unfortunately, due to the limitations of Terraform's lightsail resources, this terrafile needs the AWS cli installed and the default credentials need to be configured for the AWS account you are using.

Usage

You will probably want to customize the deployment for how many servers you want and which size server, but by default it creates one manager and two worker nodes on the Lightsail nano instances. You will also want to change the DNS to a domain that you own so that it can point that DNS record to the cluster.

If there are any portions of the file that you don't need, such as portainer or DNS, you can set the count = 0 instead of one and it will not be run.

After your customizations are done you can deploy it like this:

terraform init
terraform apply

When you are done with your cluster you can run terraform destroy to completely delete your cluster. BEWARE!! There is no undoing a terraform destroy; you cluster will be irrecoverable.

This was quickly put together for the purpose of being able to very quickly and cost effectively stand up Docker swarm clusters for testing. Using this you can have a complete Docker swarm in just a couple of minutes!

For now this README is a little sparse, but the terrafile is well commented and you will be able to find more guidance by looking at that. If you have any questions feel free to open an issue.

terraform_lightsail-docker-swarm's People

Contributors

zicklag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.