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:1 min

conrad-mukai/terraform-cassandra

by John Doe

DescriptionThis module creates a Cassandra cluster. The module is based upon thefollowing white paper:https://d0.awsstatic.com/whitepapers/Cassandra_on_AWS.pdfVariablesNameDescriptionDefaultapp_nameapplication nameavailability_zonescomma separated list of AZsaz_countnumber of AZs to spanbackup_hourcrontab hour for backupbackup_minutecrontab minute for backupbackup_retentionbackup retention period in days7bastion_ipbastion IP address for ssh accessbastion_private_keylocal path to ssh private key for bastion accesscassandra_versionversion of Cassandra3.9cloudwatch_alarm_arncloudwatch alarm ARNcommit_log_device_nameattach device for commit log volume/dev/xvdgcommit_log_mount_pointmount point for commit log volumecommitlogdata_device_nameattach device for data volume/dev/xvdfdata_dirdata directory for Docker mount/var/lib/cassandradata_mount_pointmount point for data volumedataenvironmentenvironment to configureiam_instance_profileIAM instance profile name to allow nodes to create EBS snapshotskey_namekey pair for SSH accessnodes_per_aznumber of non-seed nodes per AZnonseed_commitlog_volume_idslist of non-seed commitlog volume IDsnonseed_data_volume_idslist of non-seed data volume IDsprivate_keylocal path to ssh private keyregionregion to configuresecurity_group_idslist of security groupsseed_addrnetwork number for seed IPseed_commitlog_volume_idslist of seed commitlog volume IDsseed_data_volume_idslist of seed data volume IDsseed_subnet_idslist of subnet IDs for seed nodes (/24 CIDR)stdenvenvironment lookup to usesubnet_idslist of subnet IDs for non-seed nodesOutputsNameDescriptionnode_ipscomma separated list of node IP addressesTestsThe test documentation can be found in test/main.tf.

Illustration Image

Description

This module creates a Cassandra cluster. The module is based upon the following white paper:

https://d0.awsstatic.com/whitepapers/Cassandra_on_AWS.pdf

Variables

Name Description Default
app_name application name
availability_zones comma separated list of AZs
az_count number of AZs to span
backup_hour crontab hour for backup
backup_minute crontab minute for backup
backup_retention backup retention period in days 7
bastion_ip bastion IP address for ssh access
bastion_private_key local path to ssh private key for bastion access
cassandra_version version of Cassandra 3.9
cloudwatch_alarm_arn cloudwatch alarm ARN
commit_log_device_name attach device for commit log volume /dev/xvdg
commit_log_mount_point mount point for commit log volume commitlog
data_device_name attach device for data volume /dev/xvdf
data_dir data directory for Docker mount /var/lib/cassandra
data_mount_point mount point for data volume data
environment environment to configure
iam_instance_profile IAM instance profile name to allow nodes to create EBS snapshots
key_name key pair for SSH access
nodes_per_az number of non-seed nodes per AZ
nonseed_commitlog_volume_ids list of non-seed commitlog volume IDs
nonseed_data_volume_ids list of non-seed data volume IDs
private_key local path to ssh private key
region region to configure
security_group_ids list of security groups
seed_addr network number for seed IP
seed_commitlog_volume_ids list of seed commitlog volume IDs
seed_data_volume_ids list of seed data volume IDs
seed_subnet_ids list of subnet IDs for seed nodes (/24 CIDR)
stdenv environment lookup to use
subnet_ids list of subnet IDs for non-seed nodes

Outputs

Name Description
node_ips comma separated list of node IP addresses

Tests

The test documentation can be found in test/main.tf.

Related Articles

terraform
datastax
cassandra

Apache Cassandra Lunch #86: DataStax Astra Terraform Provider - Business Platform Team

Arpan Patel

7/7/2022

cassandra
terraform

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

cassandra