This repo contains the official module for deploying the TICK stack on AWS using Terraform and Packer.
If you want to quickly spin up an InfluxDB cluster, you can run the simple example that is in the root of this repo. Check out influxdb-cluster-simple example documentation for instructions.
This repo has the following folder structure:
The general idea is to:
Use the scripts in the install-telegraf modules to create an AMI with Telegraf installed, this AMI will generally be for the Application server.
Configure each application server to execute the run-telegraf script during boot.
Use the scripts in the install-influxdb modules to create an AMI with InfluxDB Enterprise installed.
Deploy the AMI across one or more Auto Scaling Groups (ASG) using the influxdb-cluster module.
Configure each server in the ASGs to execute the run-influxdb script during boot.
Deploy a load balancer in front of the data node ASG.
Use the scripts in the install-chronograf modules to create an AMI with Chronograf installed.
Deploy the AMI in a single Auto Scaling Group (ASG) using the chronograf-server module.
Configure the server to execute the run-chronograf script during boot.
Deploy a load balancer in front of the ASG.
Use the scripts in the install-kapacitor modules to create an AMI with Kapacitor installed.
Deploy the AMI in a single Auto Scaling Group (ASG) using the kapacitor-server module.
Configure the server to execute the run-kapacitor script during boot.
Deploy a load balancer in front of the ASG.
See the examples folder for working sample code.
A Module is a canonical, reusable, best-practices definition for how to run a single piece of infrastructure, such as a database or server cluster. Each Module is written using a combination of Terraform and scripts (mostly bash) and include automated tests, documentation, and examples. It is maintained both by the open source community and companies that provide commercial support.
Instead of figuring out the details of how to run a piece of infrastructure from scratch, you can reuse existing code that has been proven in production. And instead of maintaining all that infrastructure code yourself, you can leverage the work of the Module community to pick up infrastructure improvements through a version number bump.
This Module is maintained by Gruntwork. If you're looking for help or commercial support, send an email to modules@gruntwork.io. Gruntwork can help with:
Contributions are very welcome! Check out the Contribution Guidelines for instructions.
This Module follows the principles of Semantic Versioning. You can find each new release, along with the changelog, in the Releases Page.
During initial development, the major version will be 0 (e.g., 0.x.y
), which indicates the code does not yet have a
stable API. Once we hit 1.0.0
, we will make every effort to maintain a backwards compatible API and use the MAJOR,
MINOR, and PATCH versions on each release to indicate any incompatibilities.
This code is released under the Apache 2.0 License. Please see LICENSE and NOTICE for more details.
Copyright © 2018 Gruntwork, Inc.