diff --git a/terraform/provider.tf b/terraform/provider.tf index ae04014..b5108b2 100644 --- a/terraform/provider.tf +++ b/terraform/provider.tf @@ -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 diff --git a/terraform/variables.tf b/terraform/variables.tf index c54e0e0..5ec00fa 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,7 +1,3 @@ -terraform { - required_version = ">= 0.12.24" -} - variable "env" { type = string default = "staging" @@ -9,12 +5,12 @@ variable "env" { variable "cluster_version" { type = string - default = "v2" + default = "v3" } variable "eks_cluster_name" { type = string - default = "eks-cluster-name" + default = "cluster-name" } locals{ @@ -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 = ["..."] -} \ No newline at end of file +}