terraform-aws-scylla icon indicating copy to clipboard operation
terraform-aws-scylla copied to clipboard

Improve modular design

Open analytically opened this issue 5 years ago • 2 comments

This is an example of how to setup an entire cluster including subnets and VPC. It'd be easier if this was a truer module, as eg. https://github.com/terraform-aws-modules/terraform-aws-eks or https://github.com/terraform-aws-modules/terraform-aws-rds-aurora.

analytically avatar Apr 14 '19 08:04 analytically

Hey @analytically! What do you mean by “truer”, what should it do instead?

rjeczalik avatar Apr 14 '19 08:04 rjeczalik

Eg. I'd love it if I could do something like:

module "scylladb" {
  source                          = "https://github.com/rjeczalik/terraform-aws-scylla/"
  name                            = "test-scylladb-cluster"

  vpc_id                          = "vpc-12345678"
  subnets                         = ["subnet-12345678", "subnet-87654321"]

  instance_type = "m5.large"
  cluster_count = 3
  key_name = "scylladb-key"

  allowed_security_groups         = ["sg-12345678"]
  storage_encrypted = true
  cluster_broadcast = "public"

  tags                            = {
    Environment = "test"
    Terraform   = "true"
  }
}

analytically avatar Apr 14 '19 10:04 analytically