Skip to content

Latest commit

 

History

History

sg_cassandra

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

sg_cassandra terraform module

A Terraform security group module for Cassandra

Ports

  • TCP 7199 (JMX)
  • TCP 9042 (Cassandra clients)
  • TCP 9160 (Cassandra Thrift clients)

Input Variables

  • security_group_name - The name for your security group, e.g. bluffdale_web_stage1
  • vpc_id - The VPC this security group should be created in.
  • source_cidr_block - The source CIDR block, defaults to 0.0.0.0/0 for this module.

Usage

You can use these in your terraform template with the following steps.

1.) Adding a module resource to your template, e.g. main.tf

module "sg_cassandra" {
  source = "github.com/terraform-community-modules/tf_aws_sg//sg_cassandra"
  security_group_name = "${var.security_group_name}-cassandra"
  vpc_id = "${var.vpc_id}"
  source_cidr_block = ["${var.source_cidr_block}"]
}

2.) Setting values for the following variables, either through terraform.tfvars or -var arguments on the CLI

  • security_group_name
  • vpc_id
  • source_cidr_block