diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-09-28 04:19:42 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-09-28 04:19:42 +0530 |
| commit | c91e833ccba15a311e23cc21709cdefaf90b4398 (patch) | |
| tree | e3a78b5eb61673dc3ace1d97a88727dc49384b4e /astroshop-terraform/main.tf | |
| parent | 44b0d2d9dea535d5580d78ae4a5082732639e2bf (diff) | |
eks: Add EKS cluster and node group configuration with IAM roles and policies
Diffstat (limited to 'astroshop-terraform/main.tf')
| -rw-r--r-- | astroshop-terraform/main.tf | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/astroshop-terraform/main.tf b/astroshop-terraform/main.tf index fe7b692..45e0756 100644 --- a/astroshop-terraform/main.tf +++ b/astroshop-terraform/main.tf @@ -6,4 +6,21 @@ module "vpc" { private_subnet_cidrs = var.private_subnet_cidrs public_subnet_cidrs = var.public_subnet_cidrs cluster_name = var.cluster_name -}
\ No newline at end of file +} + +module "eks" { + source = "./modules/eks" + + cluster_name = var.cluster_name + cluster_version = var.cluster_version + vpc_id = module.vpc.vpc_id + subnet_ids = module.vpc.private_subnet_ids + node_groups = var.node_groups + + endpoint_private_access = true + endpoint_public_access = true + public_access_cidrs = var.public_access_cidrs + + depends_on = [module.vpc] +} + |
