From 08db80d61490f1411d502f682512f08374622f8b Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 14 Oct 2021 11:06:22 -0400 Subject: [PATCH] add files --- common/prefixes.tf | 6 +++++ common/variables.eks.tf | 60 +++++++++++++++++++++++++++++++++++++++++ common/version.tf | 2 +- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 common/variables.eks.tf diff --git a/common/prefixes.tf b/common/prefixes.tf index d2ee1fe..5b4d144 100644 --- a/common/prefixes.tf +++ b/common/prefixes.tf @@ -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-" } } diff --git a/common/variables.eks.tf b/common/variables.eks.tf new file mode 100644 index 0000000..fd44b5f --- /dev/null +++ b/common/variables.eks.tf @@ -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 = "" +} + diff --git a/common/version.tf b/common/version.tf index a0cd862..fa2705b 100644 --- a/common/version.tf +++ b/common/version.tf @@ -1,3 +1,3 @@ locals { - _module_version = "0.0.0" + _module_version = "1.0.0" }