Skip to content

Commit

Permalink
Merge pull request #47 from dduportal/hotfix/eks/2-subnets-2-azs
Browse files Browse the repository at this point in the history
hotfix(eks) use 2 subnets in 2 distinct AZs
  • Loading branch information
dduportal authored Nov 27, 2024
2 parents dc7ae8e + 02ad52c commit a7a6031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eks-cijenkinsio-agents-2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7a6031

Please sign in to comment.