Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 14, 2021
1 parent 34bf362 commit 08db80d
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
6 changes: 6 additions & 0 deletions common/prefixes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ locals {
"vpn-connection" = "vpn_"
"log-group" = "lg-"
"log-stream" = "lgs-"
# EKS
"eks" = "eks-"
"eks-user" = "s-eks-"
"eks-role" = "r-eks-"
"eks-policy" = "p-eks-"
"eks-security-group" = "eks-"
}
}
60 changes: 60 additions & 0 deletions common/variables.eks.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
## variable "vpc_name" {
## description = "Define the VPC name that will be used by this cluster to find the VPC ID"
## type = string
## # default = ""
## }
##
## variable "subnets_name" {
## description = "Define the name of the subnets to be used by this cluster"
## type = string
## # default = ""
## }

variable "cluster_name" {
description = "EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev)"
type = string
default = null
}

variable "cluster_version" {
description = "The EKS Kubernetes version number, see https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html"
type = string
default = "1.21"
}

variable "instance_type" {
description = "EKS worker node instance type (default: t3.xlarge)"
type = string
default = "t3.xlarge"
}

variable "nodegroup_desired_size" {
description = "EKS Nodegroup desire size (default: 1)"
type = number
default = 1
}

variable "nodegroup_minumum_size" {
description = "EKS Nodegroup minimum size (default: 1)"
type = number
default = 1
}

variable "nodegroup_maximum_size" {
description = "EKs Nodegroup maximum size (default: 16)"
type = number
default = 16
}

variable "nodegroup_instance_disk_size" {
description = "The size of EKS nodegroup EBS disk in gigabytes (default: 40)"
type = number
default = 40
}

variable "domain" {
description = "The DNS domain name of the cluster. Defaults to empty which causes the sample application to use the domain assigned to the load balancer of the istio ingress gateway."
type = string
default = ""
}

2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "0.0.0"
_module_version = "1.0.0"
}

0 comments on commit 08db80d

Please sign in to comment.