From 151f313a72bbab8d61584b1d3b1d5fe3a74da598 Mon Sep 17 00:00:00 2001 From: Kostya Date: Thu, 30 Jan 2020 14:51:29 +0800 Subject: [PATCH] Bump eks module to v8 --- main.tf | 6 ++---- variables.tf | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index e5e12b0..cbc7115 100644 --- a/main.tf +++ b/main.tf @@ -26,12 +26,11 @@ resource "aws_security_group_rule" "eks-cluster-ingress-internet-https" { module "eks" { source = "terraform-aws-modules/eks/aws" - version = "~> 6.0.0" + version = ">= 8.0.0" cluster_name = var.cluster_name subnets = concat(var.public_subnets, var.private_subnets) vpc_id = var.vpc_id - cluster_create_security_group = false cluster_endpoint_private_access = true cluster_endpoint_public_access = true cluster_security_group_id = aws_security_group.eks-cluster.id @@ -39,7 +38,6 @@ module "eks" { cluster_enabled_log_types = var.eks_cluster_enabled_log_types cluster_version = var.eks_cluster_version - manage_aws_auth = true write_kubeconfig = true config_output_path = "./" kubeconfig_name = var.cluster_name @@ -53,7 +51,7 @@ module "eks" { workers_group_defaults = { instance_type = "r5.xlarge" name = "eks_workers_a" - ami_id = "ami-0d275f57a60281ccc" + # ami_id = "ami-0d275f57a60281ccc" asg_max_size = 10 asg_min_size = 2 root_volume_size = 100 diff --git a/variables.tf b/variables.tf index e5622aa..d5485d3 100644 --- a/variables.tf +++ b/variables.tf @@ -40,7 +40,7 @@ variable "default_security_group_id" { variable "eks_worker_ami_name_filter" { type = string - default = "v*" + default = "" } variable "eks_cluster_enabled_log_types" {