-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
109 lines (93 loc) · 2.33 KB
/
Copy pathvariables.tf
File metadata and controls
109 lines (93 loc) · 2.33 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
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
variable "phala_api_key" {
type = string
sensitive = true
}
variable "create_resources" {
type = bool
default = false
description = "If false, run read-only smoke checks with data sources only."
}
variable "ssh_public_key" {
type = string
default = ""
description = "Optional SSH public key for phala_ssh_key smoke resource."
}
variable "ssh_key_name" {
type = string
default = "tf-smoke-key"
}
variable "app_name" {
type = string
default = "tf-smoke-app"
}
variable "create_consumer_app" {
type = bool
default = false
description = "If true, create a second app that consumes app_id/endpoint from the first app."
}
variable "consumer_app_name" {
type = string
default = "tf-smoke-consumer"
}
variable "app_env" {
type = map(string)
default = {}
sensitive = true
description = "Optional env map for the primary app."
}
variable "cvm_power_state" {
type = string
default = ""
description = "Optional desired power state for phala_cvm_power (running or stopped). Empty disables the power resource."
}
variable "size" {
type = string
default = ""
description = "Optional explicit size slug. Defaults to tdx.small for a stable smoke target."
}
variable "region" {
type = string
default = ""
description = "Optional explicit region slug. Empty lets the backend auto-place the workload."
}
variable "image" {
type = string
default = ""
description = "Optional explicit image name."
}
variable "docker_compose" {
type = string
default = <<-YAML
services:
web:
image: nginx:stable
ports:
- "80:80"
YAML
}
variable "consumer_app_env" {
type = map(string)
default = {}
sensitive = true
description = "Optional additional env for the consumer app. UPSTREAM_APP_ID/UPSTREAM_ENDPOINT are injected automatically."
}
variable "consumer_app_docker_compose" {
type = string
default = <<-YAML
services:
web:
image: nginx:stable
ports:
- "80:80"
YAML
}
variable "wait_for_ready" {
type = bool
default = true
description = "Wait until CVM reaches running state."
}
variable "wait_timeout_seconds" {
type = number
default = 900
description = "Timeout for wait_for_ready."
}