mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-27 02:48:57 +02: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(
|
worker_groups = "${list(
|
||||||
map("instance_type","t2.small",
|
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",
|
tags = "${map("Environment", "test",
|
||||||
@@ -68,7 +69,7 @@ module "vpc" {
|
|||||||
module "eks" {
|
module "eks" {
|
||||||
source = "../.."
|
source = "../.."
|
||||||
cluster_name = "${local.cluster_name}"
|
cluster_name = "${local.cluster_name}"
|
||||||
subnets = "${module.vpc.public_subnets}"
|
subnets = ["${module.vpc.public_subnets}", "${module.vpc.private_subnets}"]
|
||||||
tags = "${local.tags}"
|
tags = "${local.tags}"
|
||||||
vpc_id = "${module.vpc.vpc_id}"
|
vpc_id = "${module.vpc.vpc_id}"
|
||||||
worker_groups = "${local.worker_groups}"
|
worker_groups = "${local.worker_groups}"
|
||||||
|
|||||||
Reference in New Issue
Block a user