From 09d9817a1d5547cd61108e160dccb99815f946c5 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Sat, 21 Jul 2018 00:26:59 -0700 Subject: [PATCH] worker nodes on private subnet in example after all that's the entire reason for this PR in the first place --- examples/eks_test_fixture/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/eks_test_fixture/main.tf b/examples/eks_test_fixture/main.tf index b4ef39c..d8050c5 100644 --- a/examples/eks_test_fixture/main.tf +++ b/examples/eks_test_fixture/main.tf @@ -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}"