-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
64 lines (52 loc) · 1.85 KB
/
variables.tf
File metadata and controls
64 lines (52 loc) · 1.85 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
## Provider
variable "cloudpilot_api_key" {
description = "CloudPilot AI API key. Obtain from https://console.cloudpilot.ai"
type = string
sensitive = true
}
variable "cloudpilot_api_endpoint" {
description = "CloudPilot AI API endpoint URL."
type = string
default = "https://api.cloudpilot.ai"
}
## EKS Cluster
variable "cluster_name" {
description = "Name of the EKS cluster to be managed."
type = string
}
variable "region" {
description = "AWS region where the EKS cluster is located."
type = string
}
variable "aws_profile" {
description = "AWS CLI named profile for STS and EKS kubeconfig operations. Empty uses the default profile or environment credentials."
type = string
default = ""
}
variable "custom_node_role" {
description = "IAM role name for EC2 worker nodes; added to CloudPilot PassNodeIAMRole during rebalance install. Empty uses the CloudPilot default role."
type = string
default = ""
}
variable "skip_restore" {
description = "If true, skip restoring original node groups before destroy. When false and restore_node_number > 0, restores nodes when CloudPilot-managed nodes exist."
type = bool
default = true
}
variable "restore_node_number" {
description = "Number of nodes to restore from original node groups on destroy. Set to 0 to leave the cluster in its optimized state."
type = number
default = 0
}
## Node Autoscaler Optimization
## Modify these in terraform.tfvars to enable optimization, then run `terraform apply`.
variable "only_install_agent" {
description = "Only install the CloudPilot AI agent without additional optimization."
type = bool
default = false
}
variable "enable_rebalance" {
description = "Enable automatic workload rebalancing across node pools."
type = bool
default = false
}