Skip to content

Commit

Permalink
Try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDiazL committed Dec 19, 2023
1 parent a713489 commit acd23d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ locals {
aws_eks_cluster_log_types = var.aws_eks_cluster_log_types != "" ? [for n in split(",", var.aws_eks_cluster_log_types) : (n)] : []
}

#resource "aws_cloudwatch_log_group" "eks" {
# count = var.aws_eks_cluster_log_types != "" ? 1 : 0
# name = "/aws/eks/${var.aws_eks_cluster_name}/cluster"
# retention_in_days = 7#tonumber(var.aws_eks_cluster_log_retention_days)
#}

resource "aws_eks_cluster" "main" {
name = var.aws_eks_cluster_name # Cluster name is defined during the code-generation phase
version = var.aws_eks_cluster_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ variable "aws_eks_allowed_ports" {}
variable "aws_eks_allowed_ports_cidr" {}
variable "aws_eks_cluster_name" {}
variable "aws_eks_cluster_log_types" {}
variable "aws_eks_cluster_log_retention_days" {}
variable "aws_eks_cluster_version" {}
variable "aws_eks_instance_type" {}
variable "aws_eks_instance_ami_id" {}
Expand Down

0 comments on commit acd23d4

Please sign in to comment.