Skip to content

Commit

Permalink
Merge pull request #5 from OneideLuizSchneider/upgrades-patch-05
Browse files Browse the repository at this point in the history
EKS - k8s 1.27 - Upgrades and changes
  • Loading branch information
OneideLuizSchneider authored Nov 5, 2023
2 parents 018912a + 9773435 commit a8e44be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
11 changes: 9 additions & 2 deletions terraform/provider.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
provider "aws" {
version = "~> 3.37"
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.3"
}
}
}

provider "aws" {
region = local.region
access_key = local.access_key
secret_key = local.secret_key
Expand Down
12 changes: 4 additions & 8 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
terraform {
required_version = ">= 0.12.24"
}

variable "env" {
type = string
default = "staging"
}

variable "cluster_version" {
type = string
default = "v2"
default = "v3"
}

variable "eks_cluster_name" {
type = string
default = "eks-cluster-name"
default = "cluster-name"
}

locals{
Expand All @@ -26,11 +22,11 @@ locals{
subnets = ["..."]
internal_ip_range = "0.0.0.0/0"

eks_version = "1.22"
eks_version = "1.27"
cluster_name = "${var.eks_cluster_name}-${var.env}-${var.cluster_version}"
cluster_enabled_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
asg_desired_capacity = 1
asg_max_size = 2
asg_min_size = 1
instance_type = ["..."]
}
}

0 comments on commit a8e44be

Please sign in to comment.