From 62331521dff3d7fa5450023c7fb2a57a301f088e Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Sat, 4 Jul 2026 01:02:32 +0530 Subject: [PATCH 01/24] Update main.tf --- eks-install/main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 3abe1f3d..a17172bb 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -7,11 +7,11 @@ terraform { } backend "s3" { - bucket = "demo-terraform-eks-state-s3-bucket" - key = "terraform.tfstate" - region = "us-west-2" - dynamodb_table = "terraform-eks-state-locks" - encrypt = true + bucket = "aakhil-terraform-eks-state-ap-south-1" # Must be globally unique and created in AWS first + key = "terraform.tfstate" + region = "ap-south-1" # Aligned with your standard deployment region + use_lockfile = true # Replaces the deprecated dynamodb_table + encrypt = true } } From 20bc619b1a507bf970ee1414e7fc9caeb51e5457 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Thu, 23 Jul 2026 20:54:02 +0530 Subject: [PATCH 02/24] Update EKS variables for region, availability zones, and instance types --- eks-install/variables.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eks-install/variables.tf b/eks-install/variables.tf index 1d32e287..fe60a220 100644 --- a/eks-install/variables.tf +++ b/eks-install/variables.tf @@ -1,7 +1,7 @@ variable "region" { description = "AWS region" type = string - default = "us-west-2" + default = "ap-south-1" } variable "vpc_cidr" { @@ -13,7 +13,7 @@ variable "vpc_cidr" { variable "availability_zones" { description = "Availability zones" type = list(string) - default = ["us-west-2a", "us-west-2b", "us-west-2c"] + default = ["ap-south-1a", "ap-south-1b", "ap-south-1c"] } variable "private_subnet_cidrs" { @@ -53,10 +53,10 @@ variable "node_groups" { })) default = { general = { - instance_types = ["t3.medium"] + instance_types = ["c7i-flex.large"] capacity_type = "ON_DEMAND" scaling_config = { - desired_size = 2 + desired_size = 1 max_size = 4 min_size = 1 } From b7213754a899ed6be508c018797c8824855c2dda Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Thu, 23 Jul 2026 21:44:12 +0530 Subject: [PATCH 03/24] lo bhai jenkinsfile --- Jenkinsfile | 0 eks-install/main.tf | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..e69de29b diff --git a/eks-install/main.tf b/eks-install/main.tf index a17172bb..04828fe8 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -7,11 +7,11 @@ terraform { } backend "s3" { - bucket = "aakhil-terraform-eks-state-ap-south-1" # Must be globally unique and created in AWS first - key = "terraform.tfstate" - region = "ap-south-1" # Aligned with your standard deployment region - use_lockfile = true # Replaces the deprecated dynamodb_table - encrypt = true + bucket = "demo-terraform-eks-state-s3-bucket" + key = "terraform.tfstate" + region = "ap-south-1" + dynamodb_table = "terraform-eks-state-locks" + encrypt = true } } From eced5f2824bc1016511194d17333837c9864b4b9 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Thu, 23 Jul 2026 21:46:36 +0530 Subject: [PATCH 04/24] afaf --- Jenkinsfile | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29b..c2713e39 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,77 @@ +pipeline { + agent any + + // Defines a parameter to choose between creating or destroying the EKS cluster + parameters { + choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') + } + + environment { + // --- TARGET MODULE LOCATION --- + // Tells Jenkins where main.tf and other terraform files live + TF_DIR = 'eks-install' + + // AWS Jenkins Credentials ID and target region + AWS_CREDENTIALS_ID = 'your-aws-credentials-id' + AWS_DEFAULT_REGION = 'ap-south-1' + } + + stages { + stage('Checkout Code') { + steps { + // Pulls repository code into workspace + checkout scm + } + } + + stage('Terraform Init') { + steps { + // dir() switches context into the 'eks-install' directory where main.tf resides + dir("${env.TF_DIR}") { + withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + sh 'terraform init' + } + } + } + } + + stage('Terraform Plan') { + steps { + // Runs terraform plan inside 'eks-install', automatically reading main.tf + dir("${env.TF_DIR}") { + withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + sh "terraform plan ${params.ACTION == 'destroy' ? '-destroy' : ''} -out=tfplan" + } + } + } + } + + stage('Manual Approval') { + steps { + input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: 'Proceed' + } + } + + stage('Terraform Execute') { + steps { + dir("${env.TF_DIR}") { + withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + script { + if (params.ACTION == 'apply') { + sh 'terraform apply -auto-approve tfplan' + } else if (params.ACTION == 'destroy') { + sh 'terraform apply -destroy -auto-approve' + } + } + } + } + } + } + } + + post { + always { + cleanWs() // Cleans up workspace after execution + } + } +} \ No newline at end of file From 9b48127bf8e80f7a719f1ee6863adabf579fe7c7 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Thu, 23 Jul 2026 21:51:33 +0530 Subject: [PATCH 05/24] git --- Jenkinsfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c2713e39..ac76849f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,13 @@ pipeline { agent any - - // Defines a parameter to choose between creating or destroying the EKS cluster parameters { choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') } environment { - // --- TARGET MODULE LOCATION --- - // Tells Jenkins where main.tf and other terraform files live + TF_DIR = 'eks-install' - // AWS Jenkins Credentials ID and target region AWS_CREDENTIALS_ID = 'your-aws-credentials-id' AWS_DEFAULT_REGION = 'ap-south-1' } @@ -19,14 +15,12 @@ pipeline { stages { stage('Checkout Code') { steps { - // Pulls repository code into workspace checkout scm } } stage('Terraform Init') { steps { - // dir() switches context into the 'eks-install' directory where main.tf resides dir("${env.TF_DIR}") { withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { sh 'terraform init' @@ -37,7 +31,6 @@ pipeline { stage('Terraform Plan') { steps { - // Runs terraform plan inside 'eks-install', automatically reading main.tf dir("${env.TF_DIR}") { withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { sh "terraform plan ${params.ACTION == 'destroy' ? '-destroy' : ''} -out=tfplan" From b4cec78fd5a889ecd65d7985b241c7d571ad6c41 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 00:33:32 +0530 Subject: [PATCH 06/24] le bhai --- Jenkinsfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ac76849f..20b8e584 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,12 @@ pipeline { agent any + parameters { choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') } environment { - TF_DIR = 'eks-install' - AWS_CREDENTIALS_ID = 'your-aws-credentials-id' AWS_DEFAULT_REGION = 'ap-south-1' } @@ -22,7 +21,7 @@ pipeline { stage('Terraform Init') { steps { dir("${env.TF_DIR}") { - withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { sh 'terraform init' } } @@ -32,7 +31,7 @@ pipeline { stage('Terraform Plan') { steps { dir("${env.TF_DIR}") { - withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { sh "terraform plan ${params.ACTION == 'destroy' ? '-destroy' : ''} -out=tfplan" } } @@ -48,7 +47,7 @@ pipeline { stage('Terraform Execute') { steps { dir("${env.TF_DIR}") { - withCredentials([aws(credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY')]) { + withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { script { if (params.ACTION == 'apply') { sh 'terraform apply -auto-approve tfplan' From 923a06f1a8496cfbbe0186f747770d721f842190 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 00:48:20 +0530 Subject: [PATCH 07/24] ksgs --- Jenkinsfile | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 20b8e584..e8d7244b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,8 +7,12 @@ pipeline { environment { TF_DIR = 'eks-install' - AWS_CREDENTIALS_ID = 'your-aws-credentials-id' AWS_DEFAULT_REGION = 'ap-south-1' + + // This pulls the two "Secret text" credentials you already created in Jenkins + // using the exact IDs shown in your screenshot ('accesskey' and 'secretaccesskey') + AWS_ACCESS_KEY_ID = credentials('accesskey') + AWS_SECRET_ACCESS_KEY = credentials('secretaccesskey') } stages { @@ -21,9 +25,7 @@ pipeline { stage('Terraform Init') { steps { dir("${env.TF_DIR}") { - withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { - sh 'terraform init' - } + sh 'terraform init' } } } @@ -31,9 +33,7 @@ pipeline { stage('Terraform Plan') { steps { dir("${env.TF_DIR}") { - withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { - sh "terraform plan ${params.ACTION == 'destroy' ? '-destroy' : ''} -out=tfplan" - } + sh "terraform plan ${params.ACTION == 'destroy' ? '-destroy' : ''} -out=tfplan" } } } @@ -47,13 +47,11 @@ pipeline { stage('Terraform Execute') { steps { dir("${env.TF_DIR}") { - withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: "${AWS_CREDENTIALS_ID}", accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { - script { - if (params.ACTION == 'apply') { - sh 'terraform apply -auto-approve tfplan' - } else if (params.ACTION == 'destroy') { - sh 'terraform apply -destroy -auto-approve' - } + script { + if (params.ACTION == 'apply') { + sh 'terraform apply -auto-approve tfplan' + } else if (params.ACTION == 'destroy') { + sh 'terraform apply -destroy -auto-approve' } } } From d0c419fb4217930901cea9ce599b4c9684d19dc7 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 01:06:19 +0530 Subject: [PATCH 08/24] doneboss --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e8d7244b..cdccbd00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { agent any + tools { + terraform 'terraform-latest' // Must match the name you set in Manage Jenkins -> Tools + } parameters { choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') From ef9e5b99140f2c1bfda33f7298818a24fa1e7f9c Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 01:21:23 +0530 Subject: [PATCH 09/24] regiondone --- eks-install/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 04828fe8..3abe1f3d 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -9,7 +9,7 @@ terraform { backend "s3" { bucket = "demo-terraform-eks-state-s3-bucket" key = "terraform.tfstate" - region = "ap-south-1" + region = "us-west-2" dynamodb_table = "terraform-eks-state-locks" encrypt = true } From 016cd5e01ebfef3aa445739f1efde7ffe2b24976 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 10:25:33 +0530 Subject: [PATCH 10/24] fix man --- eks-install/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 3abe1f3d..04828fe8 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -9,7 +9,7 @@ terraform { backend "s3" { bucket = "demo-terraform-eks-state-s3-bucket" key = "terraform.tfstate" - region = "us-west-2" + region = "ap-south-1" dynamodb_table = "terraform-eks-state-locks" encrypt = true } From e3fb6f86b7d012b75117c8472605cc516e0c5666 Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 10:29:56 +0530 Subject: [PATCH 11/24] yes --- eks-install/main.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 04828fe8..5d157779 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -9,8 +9,7 @@ terraform { backend "s3" { bucket = "demo-terraform-eks-state-s3-bucket" key = "terraform.tfstate" - region = "ap-south-1" - dynamodb_table = "terraform-eks-state-locks" + region = "us-west-2" encrypt = true } } From 014e4ac7a0ab133b187884c6dd17a94ab8d4eb1b Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 10:32:14 +0530 Subject: [PATCH 12/24] lsss --- eks-install/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 5d157779..6b79c870 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -10,7 +10,7 @@ terraform { bucket = "demo-terraform-eks-state-s3-bucket" key = "terraform.tfstate" region = "us-west-2" - encrypt = true + use_lockfile = true } } From 2daa5e136667d9b9cab877e29c4f9cd0ece1986b Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 11:08:11 +0530 Subject: [PATCH 13/24] afsafd --- eks-install/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index 6b79c870..bdcb90b8 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -9,7 +9,7 @@ terraform { backend "s3" { bucket = "demo-terraform-eks-state-s3-bucket" key = "terraform.tfstate" - region = "us-west-2" + region = "ap-south-1" use_lockfile = true } } From da631d3fe8d0d7b890aed365c5e4022e6bbd31ba Mon Sep 17 00:00:00 2001 From: Mraakhil Date: Fri, 24 Jul 2026 11:13:05 +0530 Subject: [PATCH 14/24] jdsfsdf --- eks-install/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/main.tf b/eks-install/main.tf index bdcb90b8..95b07fb9 100644 --- a/eks-install/main.tf +++ b/eks-install/main.tf @@ -7,7 +7,7 @@ terraform { } backend "s3" { - bucket = "demo-terraform-eks-state-s3-bucket" + bucket = "demo-terraform-eks-state-s3-buckethojabhai" key = "terraform.tfstate" region = "ap-south-1" use_lockfile = true From 0bebcb391b5d7d0e274581d1411a607dec9554f7 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Tue, 28 Jul 2026 00:43:11 +0530 Subject: [PATCH 15/24] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cdccbd00..3b2b2880 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { parameters { choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') + choice(name: "proceed", choices: ['yes', 'no'], description: 'Do you want to proceed with the action?') } environment { @@ -43,7 +44,7 @@ pipeline { stage('Manual Approval') { steps { - input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: 'Proceed' + input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: params.proceed == 'yes' ? 'Yes': 'No' } } @@ -67,4 +68,4 @@ pipeline { cleanWs() // Cleans up workspace after execution } } -} \ No newline at end of file +} From 7b71481a0b0594ec00827dc9e20977f4f4410f69 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Tue, 28 Jul 2026 01:17:44 +0530 Subject: [PATCH 16/24] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b2b2880..a4d47b82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,7 +44,7 @@ pipeline { stage('Manual Approval') { steps { - input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: params.proceed == 'yes' ? 'Yes': 'No' + input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: "Yes, proceed" } } From 9c73715fed26b5d27e9cec9b3c56f070eecb794e Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Tue, 28 Jul 2026 01:20:25 +0530 Subject: [PATCH 17/24] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a4d47b82..f1dfef4e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -44,7 +44,7 @@ pipeline { stage('Manual Approval') { steps { - input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: "Yes, proceed" + input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: ${params.proceed == 'yes' ? 'Yes' : 'No'} } } From 3f317833e793012175cc44b17bbdb4df64317555 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:07:59 +0530 Subject: [PATCH 18/24] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f1dfef4e..d3a830ee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,6 @@ pipeline { parameters { choice(name: 'ACTION', choices: ['apply', 'destroy'], description: 'Choose whether to apply or destroy the Terraform EKS module') - choice(name: "proceed", choices: ['yes', 'no'], description: 'Do you want to proceed with the action?') } environment { @@ -44,7 +43,7 @@ pipeline { stage('Manual Approval') { steps { - input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: ${params.proceed == 'yes' ? 'Yes' : 'No'} + input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: 'Proceed' } } From 7963f1c1e4b9959d6be2665827a3cd28b19f8642 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:15:45 +0530 Subject: [PATCH 19/24] Refactor Jenkins pipeline stages and cleanup --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3a830ee..8e234bf1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,12 +41,6 @@ pipeline { } } - stage('Manual Approval') { - steps { - input message: "Review plan for folder '${env.TF_DIR}'. Proceed with ${params.ACTION}?", ok: 'Proceed' - } - } - stage('Terraform Execute') { steps { dir("${env.TF_DIR}") { From 5f72585e4740039033f0f3d864429ad9c90f3e89 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Thu, 30 Jul 2026 18:23:58 +0530 Subject: [PATCH 20/24] Update variables.tf --- eks-install/variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eks-install/variables.tf b/eks-install/variables.tf index fe60a220..8511640e 100644 --- a/eks-install/variables.tf +++ b/eks-install/variables.tf @@ -53,7 +53,7 @@ variable "node_groups" { })) default = { general = { - instance_types = ["c7i-flex.large"] + instance_types = ["t3.micro"] capacity_type = "ON_DEMAND" scaling_config = { desired_size = 1 @@ -62,4 +62,4 @@ variable "node_groups" { } } } -} \ No newline at end of file +} From 39dee0ca8ea1453ec240f1f47be9e9f0965ef277 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Fri, 31 Jul 2026 09:52:31 +0530 Subject: [PATCH 21/24] Change default instance type from t3.micro to c7i-flex.large --- eks-install/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/variables.tf b/eks-install/variables.tf index 8511640e..3de4e9f2 100644 --- a/eks-install/variables.tf +++ b/eks-install/variables.tf @@ -53,7 +53,7 @@ variable "node_groups" { })) default = { general = { - instance_types = ["t3.micro"] + instance_types = ["c7i-flex.large"] capacity_type = "ON_DEMAND" scaling_config = { desired_size = 1 From c12cad9abf87905f7fb16483354ba319bdfba5db Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Fri, 31 Jul 2026 10:11:39 +0530 Subject: [PATCH 22/24] Update variables.tf From 34bee1fac79a3a43dc67aaac7fffe1337c7d6808 Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Fri, 31 Jul 2026 10:22:47 +0530 Subject: [PATCH 23/24] Update default Kubernetes version to 1.36 --- eks-install/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/variables.tf b/eks-install/variables.tf index 3de4e9f2..211ff732 100644 --- a/eks-install/variables.tf +++ b/eks-install/variables.tf @@ -37,7 +37,7 @@ variable "cluster_name" { variable "cluster_version" { description = "Kubernetes version" type = string - default = "1.30" + default = "1.36" } variable "node_groups" { From 37c3b47b246df4261e85dcb78ec458916c10b88c Mon Sep 17 00:00:00 2001 From: Mohammad Aakhil <149184615+Mraakhil@users.noreply.github.com> Date: Fri, 31 Jul 2026 10:27:17 +0530 Subject: [PATCH 24/24] Update variables.tf --- eks-install/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-install/variables.tf b/eks-install/variables.tf index 211ff732..d02fe1e3 100644 --- a/eks-install/variables.tf +++ b/eks-install/variables.tf @@ -37,7 +37,7 @@ variable "cluster_name" { variable "cluster_version" { description = "Kubernetes version" type = string - default = "1.36" + default = "1.31" } variable "node_groups" {