-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
81 lines (66 loc) · 1.49 KB
/
variables.tf
File metadata and controls
81 lines (66 loc) · 1.49 KB
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
variable "region" {
description = "AWS region"
default = "us-east-1"
}
variable "vpc_cidr" {
description = "CIDR block for the VPC"
default = "10.0.0.0/16"
}
variable "vpc_name" {
description = "Name of the VPC"
default = "my-vpc"
}
variable "availability_zones" {
description = "Availability zones for subnets"
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "allowed_cidr_blocks" {
description = "Allowed CIDR blocks for ingress"
default = ["0.0.0.0/0"]
}
variable "cluster_name" {
description = "EKS Cluster Name"
default = "my-eks-cluster"
}
variable "cluster_version" {
description = "EKS Cluster Version"
default = "1.22"
}
# Spot instance group variables
variable "spot_desired_capacity" {
type = number
default = 2
}
variable "spot_max_capacity" {
type = number
default = 5
}
variable "spot_min_capacity" {
type = number
default = 1
}
variable "spot_instance_type" {
type = string
default = "t3.large"
}
# On-demand instance group variables
variable "on_demand_desired_capacity" {
type = number
default = 2
}
variable "on_demand_max_capacity" {
type = number
default = 3
}
variable "on_demand_min_capacity" {
type = number
default = 1
}
variable "on_demand_instance_type" {
type = string
default = "t3.medium"
}
variable "key_name" {
description = "SSH key name for EC2 instances"
type = string
}