Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
Bump eks module to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyaplis committed Jan 30, 2020
1 parent f0ad35c commit 151f313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,18 @@ 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
worker_ami_name_filter = var.eks_worker_ami_name_filter
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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 151f313

Please sign in to comment.