-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvariables.tf
123 lines (103 loc) · 2.65 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
variable "name" {
description = "Name prefix for all resources"
type = string
}
variable "region" {
description = "AWS region"
type = string
default = "eu-west-1"
}
variable "vpc_cidr_block" {
description = "CIDR block for the VPC"
type = string
default = "10.0.0.0/16"
}
variable "public_subnet_cidrs" {
description = "List of CIDR blocks for public subnets"
type = list(string)
default = ["10.0.0.0/19", "10.0.32.0/19", "10.0.64.0/19"]
}
variable "private_subnet_cidrs" {
description = "List of CIDR blocks for private subnets"
type = list(string)
default = ["10.0.128.0/19", "10.0.160.0/19", "10.0.192.0/19"]
}
variable "availability_zones" {
description = "List of availability zones"
type = list(string)
default = ["eu-west-1a", "eu-west-1b", "eu-west-1c"]
}
variable "cluster_name" {
description = "Name of the EKS cluster"
type = string
}
variable "endpoint_private_access" {
description = "Whether the EKS cluster endpoint should be private"
type = bool
default = true
}
variable "endpoint_public_access" {
description = "Whether the EKS cluster endpoint should be public"
type = bool
default = false
}
variable "node_group_desired_size" {
description = "Desired number of worker nodes"
type = number
default = 2
}
variable "node_group_max_size" {
description = "Maximum number of worker nodes"
type = number
default = 5
}
variable "node_group_min_size" {
description = "Minimum number of worker nodes"
type = number
default = 2
}
variable "node_instance_types" {
description = "List of instance types for worker nodes"
type = list(string)
default = ["c5.large"]
}
variable "node_capacity_type" {
description = "Capacity type for worker nodes (ON_DEMAND or SPOT)"
type = string
default = "ON_DEMAND"
}
variable "node_labels" {
description = "Key-value mapping of labels for the node group"
type = map(string)
default = {
role = "general"
}
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "k8s_version" {
description = "Kubernetes version"
type = string
default = "1.30"
}
variable "environment" {
description = "Environment"
type = string
default = "staging"
}
variable "team" {
description = "Team"
type = string
}
variable "project" {
description = "Project"
type = string
}
variable "node_ami_type" {
description = "AMI ID for worker nodes"
type = string
default = "AL2_x86_64"
}