An automation suite for deploying and managing DataStax Cassandra clusters in AWS.


This repository collects Intuit's DSE automation. We've taken all of our learning for managing Cassandra in AWS and condensed it into a single package for others to leverage. It uses standard tools (Packer, Terraform, and Ansible) and can be run from a laptop. That said, we have a hard preference for automated deployments using a CICD orchestrator along the lines of Jenkins, CodeBuild/CodeDeploy, Bamboo, GitLab, or Spinnaker.

The tools in this repo can take you from an empty AWS account to a fully-functional DSE cluster, but you should have an understanding of AWS resources, Cassandra cluster management, and at least a passing familiarity with Packer, Terraform, and Ansible.

This is not a "managed" Cassandra solution. If you need one of those, AWS has you covered. If you need a fully managed DataStax solution including OpsCenter and other DSE features, DataStax Astra is now officially a thing.

On the other hand, if what you're looking for is an open source framework to help you manage your own DSE cluster... then welcome to DSE Pronto!

Notes and Features

  • Support for every phase of deployment, from an empty account to production:
    • Baking an AMI
    • Deploying a new VPC
    • Creating account-wide resources (like IAM roles) and VPC-wide resources (like a bastion host for SSH)
    • Launching a cluster
    • Runtime operations
      • Restacking and resizing a cluster
      • Bringing nodes up and down
    • Configuring OpsCenter
      • Including a number of predefined alerts and best practices
  • Transparent restacking operations, to keep in compliance with latest baseline images
    • Data stored on persistent EBS volumes, static EIP for predictable address, both located (using EC2 tags) and reattached during restack
  • DSE 5 & DSE 6 both supported, along with DSE OpsCenter & DSE Studio
  • Latest Amazon Linux 2.0 & Python 3 in use
  • More FAQs and details here

Tools Required

1. Initial Setup

There's a bunch of one-time setup you'll need to do before you start baking AMIs or deploying clusters.

Please follow all of the steps here before proceeding.

2. Baking AMIs

Instructions for baking AWS images with Packer are here.

3. Deploying

Instructions for deploying AWS resources with Terraform are here.

4. Runtime Operations

Instructions for running playbooks with Ansible are here.

5. OpsCenter

Instructions for deploying and managing an OpsCenter node are here.

6. Debugging

If you're having trouble getting anything to work, go here for tips on debugging!

7. Cleaning Up

Instructions for deleting everything deployed by this repo are here.


Copyright 2020 Intuit Inc.