Skip to content

Commit ba3600c

Browse files
authored
Merge pull request #8346 from ameukam/kops-ci-bump-eks-version
AWS: bump kOps CI cluster
2 parents 1e91659 + a93a3b0 commit ba3600c

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ data "aws_region" "current" {
2828
}
2929

3030
data "aws_organizations_organization" "current" {}
31+
32+
data "aws_iam_roles" "sso_admins" {
33+
name_regex = "AWSReservedSSO_AdministratorAccess_.*"
34+
path_prefix = "/aws-reserved/sso.amazonaws.com/"
35+
}
36+
37+
data "aws_eks_cluster_auth" "eks" {
38+
name = module.eks.cluster_name
39+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module "eks" {
8383

8484
subnet_ids = module.vpc.private_subnets
8585

86-
min_size = 3
86+
min_size = 10
8787
max_size = 100
8888
desired_size = 3
8989

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,5 @@ provider "aws" {
3232
provider "kubernetes" {
3333
host = module.eks.cluster_endpoint
3434
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
35-
36-
# This requires the awscli to be installed locally where Terraform is executed.
37-
exec {
38-
api_version = "client.authentication.k8s.io/v1beta1"
39-
command = "aws"
40-
# This requires the awscli to be installed locally where Terraform is executed
41-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
42-
}
35+
token = data.aws_eks_cluster_auth.eks.token
4336
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ terraform {
2727
required_providers {
2828
aws = {
2929
source = "hashicorp/aws"
30-
version = "~> 5.58.0"
30+
version = "~> 5.100.0"
31+
}
32+
kubernetes = {
33+
source = "hashicorp/kubernetes"
34+
version = "~> 2.38.0"
35+
3136
}
3237
}
3338
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
variable "eks_version" {
1818
type = string
19-
default = "1.28"
19+
default = "1.29"
2020
}
2121

2222
variable "tags" {

0 commit comments

Comments
 (0)