Giter Site home page Giter Site logo

halfb00t / terraform-rabbitmq-autocluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hrzbrg/terraform-rabbitmq-autocluster

0.0 1.0 0.0 131 KB

RabbitMQ Container with with Autocluster Plugin to be used with AWS Autoscaling Groups

License: MIT License

Shell 14.04% HCL 85.96%

terraform-rabbitmq-autocluster's Introduction

Terraform RabbitMQ Autocluster

RabbitMQ Autocluster Container

The docker folder contains all necessary assets for the RabbitMQ Autocluster container. The Autocluster and AWS plugin are directly placed in the docker/plugins folder.

The config enables the following plugins:

  • AWS
  • Autocluster
  • Management
  • MQTT

Instance Userdata

The userdata script is a piece of bash that AWS runs during initial instance startup. It runs as root, so we have the opportunity to install Docker and launch the container. If you work in another AWS region than eu-west-1, be sure to change the region specific settings in the userdata file.

Terraform

Open the main.tf to see the building blocks that Terraform will set up:

  1. The Autoscaling Group initially consists of 3 servers. The instance type can be configured in the variables.tf as instance_type.
  2. The Launch Configuration feeds the userdata.sh and SSH Key to the instances.
  3. An Elastic LoadBalancer sits in front of the cluster to handle SSL termination for the MQTT port 8883.
  4. Two Security Groups are created. One for the ELB that only allows port 8883. Another one for the cluster instances that allows traffic from the ELB and SSH/RabbitMQ Management access from a manually defined IP range.

Once you filled in all necessary variables in the variables.tf you are ready to run Terraform to launch the Autoscaling Group.

terraform-rabbitmq-autocluster's People

Contributors

hrzbrg 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.