mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-20 16:43:46 +01:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user