Skip to content

Commit 354f77e

Browse files
committed
Adds example for auto mode config without built-in node pools
1 parent 076e62d commit 354f77e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

examples/eks-auto-mode/main.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,27 @@ module "eks" {
5050
tags = local.tags
5151
}
5252

53+
module "eks_custom_node_pools" {
54+
source = "../.."
55+
56+
name = "${local.name}-cnp"
57+
kubernetes_version = local.kubernetes_version
58+
endpoint_public_access = true
59+
deletion_protection = true
60+
61+
enable_cluster_creator_admin_permissions = true
62+
63+
compute_config = {
64+
enabled = true
65+
node_pools = []
66+
}
67+
68+
vpc_id = module.vpc.vpc_id
69+
subnet_ids = module.vpc.private_subnets
70+
71+
tags = local.tags
72+
}
73+
5374
module "disabled_eks" {
5475
source = "../.."
5576

0 commit comments

Comments
 (0)