From 02ad52c204cbd68c673b89647181ec67c4f2833d Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Wed, 27 Nov 2024 16:14:00 +0100 Subject: [PATCH] hotfix(eks) use 2 subnets in 2 distinct AZs Signed-off-by: Damien Duportal --- eks-cijenkinsio-agents-2.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eks-cijenkinsio-agents-2.tf b/eks-cijenkinsio-agents-2.tf index 0e4db84..31ce33c 100644 --- a/eks-cijenkinsio-agents-2.tf +++ b/eks-cijenkinsio-agents-2.tf @@ -19,7 +19,7 @@ module "cijenkinsio-agents-2" { create_iam_role = true # 2 AZs are mandatory for EKS https://docs.aws.amazon.com/eks/latest/userguide/network-reqs.html#network-requirements-subnets - subnet_ids = slice(module.vpc.private_subnets, 2, 3) + subnet_ids = slice(module.vpc.private_subnets, 1, 3) # Required to allow EKS service accounts to authenticate to AWS API through OIDC (and assume IAM roles) # useful for autoscaler, EKS addons and any AWS APi usage enable_irsa = true