worker nodes on private subnet in example

after all that's the entire reason for this PR in the first place
This commit is contained in:
Andrew Lavery
2018-07-21 00:26:59 -07:00
parent cf8e8779be
commit 09d9817a1d

View File

@@ -37,7 +37,8 @@ locals {
worker_groups = "${list(
map("instance_type","t2.small",
"additional_userdata","echo foo bar"
"additional_userdata","echo foo bar",
"subnets", "${join(",", module.vpc.private_subnets)}",
),
)}"
tags = "${map("Environment", "test",
@@ -68,7 +69,7 @@ module "vpc" {
module "eks" {
source = "../.."
cluster_name = "${local.cluster_name}"
subnets = "${module.vpc.public_subnets}"
subnets = ["${module.vpc.public_subnets}", "${module.vpc.private_subnets}"]
tags = "${local.tags}"
vpc_id = "${module.vpc.vpc_id}"
worker_groups = "${local.worker_groups}"