Browse Source

better vars

Chris Mague 5 years ago
parent
commit
a8328daf5e
2 changed files with 13 additions and 11 deletions
  1. 1 1
      maguec1.tfvars
  2. 12 10
      main.tf

+ 1 - 1
maguec1.tfvars

@@ -1,6 +1,6 @@
 region    = "us-west-1"
 region    = "us-west-1"
 profile   = "redislabs"
 profile   = "redislabs"
-open-nets = ["76.14.80.208"]
+open-nets = ["76.14.80.208/32"]
 vpc-azs   = ["us-west-1a", "us-west-1c"]
 vpc-azs   = ["us-west-1a", "us-west-1c"]
 vpc-cidr  = "10.161.0.0/16"
 vpc-cidr  = "10.161.0.0/16"
 vpc-name  = "maguec1"
 vpc-name  = "maguec1"

+ 12 - 10
main.tf

@@ -18,16 +18,18 @@ module "vpc" {
 }
 }
 
 
 module "nodes" {
 module "nodes" {
-  source          = "../tfmodule-aws-redis-enterprise"
+  source           = "../tfmodule-aws-redis-enterprise"
-  region          = var.region
+  region           = var.region
-  profile         = var.profile
+  profile          = var.profile
-  open-nets       = ["76.14.80.208/32"]
+  open-nets        = ["76.14.80.208/32"]
-  data-node-count = 3
+  data-node-count  = 3
-  vpc-cidr        = var.vpc-cidr
+  re-volume-size   = 500
-  vpc-azs         = var.vpc-azs
+  re-instance-type = "m5.4xlarge"
-  vpc-name        = var.vpc-name
+  vpc-cidr         = var.vpc-cidr
-  vpc-id          = module.vpc.vpc-id
+  vpc-azs          = var.vpc-azs
-  vpc-subnets     = module.vpc.subnets-public
+  vpc-name         = var.vpc-name
+  vpc-id           = module.vpc.vpc-id
+  vpc-subnets      = module.vpc.subnets-public
   common-tags = {
   common-tags = {
     "Owner"   = "maguec"
     "Owner"   = "maguec"
     "Project" = "example_terraform"
     "Project" = "example_terraform"