From 90a62ae7ea5e745b99d8ac8d08ae837bbaedfce5 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sun, 28 Sep 2025 04:34:29 +0530 Subject: backend: Refactor formatting in main.tf and variables.tf, add terraform.tfvars for configuration --- astroshop-terraform/terraform.tfvars | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 astroshop-terraform/terraform.tfvars (limited to 'astroshop-terraform/terraform.tfvars') diff --git a/astroshop-terraform/terraform.tfvars b/astroshop-terraform/terraform.tfvars new file mode 100644 index 0000000..a68abe8 --- /dev/null +++ b/astroshop-terraform/terraform.tfvars @@ -0,0 +1,29 @@ +region = "ap-south-1" +cluster_name = "astroshop-eks-cluster" +cluster_version = "1.32" +vpc_cidr = "10.0.0.0/16" +availability_zones = ["ap-south-1a", "ap-south-1b", "ap-south-1c"] +private_subnet_cidrs = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] +public_subnet_cidrs = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"] +public_access_cidrs = ["0.0.0.0/0"] # This should be Changed to client IP range! + +node_groups = { + general = { + instance_types = ["m7i-flex.large"] + capacity_type = "ON_DEMAND" + scaling_config = { + desired_size = 2 + max_size = 3 + min_size = 1 + } + } + # spot = { + # instance_types = ["m7i-flex.large"] + # capacity_type = "SPOT" + # scaling_config = { + # desired_size = 1 + # max_size = 3 + # min_size = 0 + # } + # } +} -- cgit v1.2.3