-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
79 lines (67 loc) · 1.75 KB
/
Copy pathvariables.tf
File metadata and controls
79 lines (67 loc) · 1.75 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
variable "aws_region" {
description = "AWS region for resources"
type = string
default = "ap-northeast-1"
}
variable "project_name" {
description = "Project name for resource naming"
type = string
default = "spot-dev"
}
variable "instance_type" {
description = "EC2 instance type"
type = string
default = "c7g.4xlarge"
}
variable "spot_max_price" {
description = "Maximum price for spot instance (empty string for on-demand price)"
type = string
default = ""
}
variable "root_volume_size" {
description = "Root volume size in GB"
type = number
default = 100
}
variable "ssh_key_name" {
description = "Name of the SSH key pair in AWS (optional - not needed for SSM)"
type = string
sensitive = true
default = ""
}
variable "github_pat" {
description = "GitHub Personal Access Token"
type = string
sensitive = true
default = ""
}
variable "github_username" {
description = "GitHub username"
type = string
default = ""
}
variable "github_email" {
description = "GitHub email for git config"
type = string
default = ""
}
variable "github_repo_url" {
description = "GitHub repository URL to clone"
type = string
default = ""
}
variable "anthropic_api_key" {
description = "Anthropic API key for Claude Code (leave empty to skip auto-login)"
type = string
sensitive = true
default = ""
}
variable "auto_terminate_hours" {
description = "Hours before auto-termination"
type = number
default = 2
validation {
condition = var.auto_terminate_hours >= 1 && var.auto_terminate_hours <= 24
error_message = "Auto-terminate hours must be between 1 and 24."
}
}