|
| 1 | +# Required |
| 2 | +variable "env" { |
| 3 | + description = "Deployment environment." |
| 4 | + type = string |
| 5 | +} |
| 6 | + |
| 7 | +variable "aws_region" { |
| 8 | + description = "AWS Region." |
| 9 | + type = string |
| 10 | +} |
| 11 | + |
| 12 | +variable "kubernetes_version" { |
| 13 | + description = "The version of the EKS cluster to create for sentry." |
| 14 | + type = string |
| 15 | +} |
| 16 | + |
| 17 | +variable "vpc_id" { |
| 18 | + description = "VPC ID where the EKS cluster will be created." |
| 19 | + type = string |
| 20 | +} |
| 21 | + |
| 22 | +variable "private_subnet_ids" { |
| 23 | + description = "Private subnet IDs to add kubernetes cluster on." |
| 24 | + type = list(string) |
| 25 | + default = [] |
| 26 | +} |
| 27 | + |
| 28 | +variable "hosted_zone_subdomain" { |
| 29 | + description = "Hosted zone subdomain." |
| 30 | + type = string |
| 31 | +} |
| 32 | + |
| 33 | +variable "module_prefix" { |
| 34 | + description = "String to prefix resource names." |
| 35 | + type = string |
| 36 | +} |
| 37 | + |
| 38 | + |
| 39 | +# Optional |
| 40 | +variable "allowed_cidr_blocks" { |
| 41 | + description = "List of cidr to allow inbound traffic to the EKS cluster." |
| 42 | + type = list(string) |
| 43 | + default = [] |
| 44 | +} |
| 45 | + |
| 46 | +variable "allowed_management_cidr_blocks" { |
| 47 | + description = "List of cidr to allow inbound traffic to the EKS management API." |
| 48 | + type = list(string) |
| 49 | + default = [] |
| 50 | +} |
| 51 | + |
| 52 | +variable "aws_public_hosted_zone" { |
| 53 | + description = "Public Route53 hosted zone domain." |
| 54 | + type = string |
| 55 | + default = null |
| 56 | +} |
| 57 | + |
| 58 | +variable "aws_private_hosted_zone" { |
| 59 | + description = "Private Route53 hosted zone subdomain." |
| 60 | + type = string |
| 61 | + default = null |
| 62 | +} |
| 63 | + |
| 64 | +variable "node_group_instance_sizes" { |
| 65 | + description = "Node group instance sizes as a list of strings." |
| 66 | + type = list(string) |
| 67 | + default = ["t3.xlarge"] |
| 68 | +} |
| 69 | + |
| 70 | +variable "eks_aws_auth_configmap_enable" { |
| 71 | + description = "Determines whether to manage the aws-auth configmap" |
| 72 | + type = bool |
| 73 | + default = false |
| 74 | +} |
| 75 | + |
| 76 | +variable "eks_aws_auth_configmap_roles" { |
| 77 | + description = "List of role maps to add to the EKS cluster aws-auth configmap, require eks_aws_auth_configmap_enable to be true" |
| 78 | + type = list(any) |
| 79 | + default = [] |
| 80 | +} |
| 81 | + |
| 82 | +variable "eks_aws_auth_configmap_users" { |
| 83 | + description = "List of user maps to add to the EKS cluster aws-auth configmap, require eks_aws_auth_configmap_enable to be true" |
| 84 | + type = list(any) |
| 85 | + default = [] |
| 86 | +} |
| 87 | + |
| 88 | +locals { |
| 89 | + eks_cluster_name = "${var.module_prefix}-cluster" |
| 90 | +} |
0 commit comments