Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

7/30/2019

Reading time:N/A min

nickbatts/terraform-aws-cassandra-cluster

by John Doe

Terraform template to launch a 3 node Cassandra cluster on AWS EC2 t2.small instances.Choose 'linux' or 'ubuntu' based AMIDependenciesTerraform 0.11.2+ - For installation instructions go here. Or you can use a Docker image like this one.AWS account - Free; if you don't have an account you can sign up at https://aws.amazon.com/. In this example we use T2.small instances.QuickStartClone the repo: git clone git@github.com:nickbatts/terraform-aws-linux-cassandra-cluster && cd terraform-aws-linux-cassandra-cluster change key_name variable to name of your own keyterraform plan - check to make sure there are no mistakesterraform apply - review and confirm resources to be createdterraform destroy - terminate instances and clean-up resourcesHelpful CommandsCassandra administration/var/log/cassandra/cassandra.log - database logs for troubleshooting/etc/cassandra/conf/cassandra.yaml - cassandra configuration file as edited by ./aws_linux_setup_script_cassandra.shsudo service cassandra status - confirm cassandra is runningnodetool status - check cluster status and other nodesAuthorsNick BattsLicenseThis project is licensed under the terms of the MIT license.

Illustration Image

Terraform template to launch a 3 node Cassandra cluster on AWS EC2 t2.small instances.

Choose 'linux' or 'ubuntu' based AMI

Dependencies

  • Terraform 0.11.2+ - For installation instructions go here. Or you can use a Docker image like this one.
  • AWS account - Free; if you don't have an account you can sign up at https://aws.amazon.com/. In this example we use T2.small instances.

QuickStart

  • Clone the repo: git clone git@github.com:nickbatts/terraform-aws-linux-cassandra-cluster && cd terraform-aws-linux-cassandra-cluster
  • change key_name variable to name of your own key
  • terraform plan - check to make sure there are no mistakes
  • terraform apply - review and confirm resources to be created
  • terraform destroy - terminate instances and clean-up resources

Helpful Commands

Cassandra administration

  • /var/log/cassandra/cassandra.log - database logs for troubleshooting

  • /etc/cassandra/conf/cassandra.yaml - cassandra configuration file as edited by ./aws_linux_setup_script_cassandra.sh

  • sudo service cassandra status - confirm cassandra is running

  • nodetool status - check cluster status and other nodes

Authors

  • Nick Batts

License

This project is licensed under the terms of the MIT license.

Related Articles

database
datastax
aws

Getting Started with DataStax Astra DB and Amazon Bedrock | DataStax

John Doe

11/30/2023

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

aws