Skip to content

Commit 9ccd2ec

Browse files
authored
Merge pull request #9462 from ameukam/kops-ci-bump-tf-modules
AWS: bump module and provider versions for kOps CI
2 parents 669dbc5 + 81c97ec commit 9ccd2ec

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

infra/aws/terraform/kops-infra-ci/eks.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
module "eks" {
1818
providers = { aws = aws.kops-infra-ci }
1919
source = "terraform-aws-modules/eks/aws"
20-
version = "21.3.2"
20+
version = "~> 21.20"
2121

2222
name = local.cluster_name
2323
kubernetes_version = var.eks_version
@@ -179,7 +179,7 @@ resource "aws_eks_pod_identity_association" "kops_prow_build" {
179179
module "vpc_cni_irsa" {
180180
providers = { aws = aws.kops-infra-ci }
181181
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts"
182-
version = "~> 6.2.1"
182+
version = "~> 6.6"
183183

184184
name = "vpc-cni-ipv4"
185185
attach_vpc_cni_policy = true
@@ -202,7 +202,7 @@ module "vpc_cni_irsa" {
202202
module "ebs_csi_irsa" {
203203
providers = { aws = aws.kops-infra-ci }
204204
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts"
205-
version = "~> 6.2.1"
205+
version = "~> 6.6"
206206

207207
name = "ebs-csi"
208208
attach_ebs_csi_policy = true
@@ -222,7 +222,7 @@ module "ebs_csi_irsa" {
222222
module "cluster_autoscaler_irsa_role" {
223223
providers = { aws = aws.kops-infra-ci }
224224
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts"
225-
version = "~> 6.2.1"
225+
version = "~> 6.6"
226226

227227
name = "cluster-autoscaler"
228228
attach_cluster_autoscaler_policy = true

infra/aws/terraform/kops-infra-ci/terraform.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ terraform {
2424
required_providers {
2525
aws = {
2626
source = "hashicorp/aws"
27-
version = "~> 6.37.0"
27+
version = "~> 6.44"
2828
}
2929
kubernetes = {
3030
source = "hashicorp/kubernetes"

infra/aws/terraform/kops-infra-ci/vpc.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module "vpc" {
6666
}
6767

6868
source = "terraform-aws-modules/vpc/aws"
69-
version = "~> 6.4.0"
69+
version = "~> 6.6"
7070

7171
name = "${local.prefix}-vpc"
7272
cidr = aws_vpc_ipam_preview_next_cidr.main.cidr
@@ -113,7 +113,7 @@ module "vpc_endpoints" {
113113
}
114114

115115
source = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints"
116-
version = "~> 6.4.0"
116+
version = "~> 6.6"
117117

118118
vpc_id = module.vpc.vpc_id
119119

@@ -142,7 +142,7 @@ module "vpc_endpoints" {
142142
replace(service, ".", "_") =>
143143
{
144144
service = service
145-
subnet_ids = module.vpc.private_subnets
145+
subnet_ids = slice(module.vpc.private_subnets, 0, length(local.azs))
146146
private_dns_enabled = true
147147
tags = { Name = "${local.prefix}-${service}" }
148148
}

0 commit comments

Comments
 (0)