Skip to content

Commit 09d9817

Browse files
committed
worker nodes on private subnet in example
after all that's the entire reason for this PR in the first place
1 parent cf8e877 commit 09d9817

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/eks_test_fixture/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ locals {
3737

3838
worker_groups = "${list(
3939
map("instance_type","t2.small",
40-
"additional_userdata","echo foo bar"
40+
"additional_userdata","echo foo bar",
41+
"subnets", "${join(",", module.vpc.private_subnets)}",
4142
),
4243
)}"
4344
tags = "${map("Environment", "test",
@@ -68,7 +69,7 @@ module "vpc" {
6869
module "eks" {
6970
source = "../.."
7071
cluster_name = "${local.cluster_name}"
71-
subnets = "${module.vpc.public_subnets}"
72+
subnets = ["${module.vpc.public_subnets}", "${module.vpc.private_subnets}"]
7273
tags = "${local.tags}"
7374
vpc_id = "${module.vpc.vpc_id}"
7475
worker_groups = "${local.worker_groups}"

0 commit comments

Comments
 (0)