generated from masterpointio/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-config.schema.json
239 lines (239 loc) · 7.43 KB
/
stack-config.schema.json
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://json.schemastore.org/masterpoint-spacelift-automation-stack-config.json",
"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true,
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
"https://json-schema.org/draft/2020-12/vocab/validation": true
},
"title": "Masterpoint Stack Config schema. Version 1.0. https://masterpoint.io",
"description": "Schema for Masterpoint's spacelift-automation stack configuration files. This is used to override stack configurations for the https://github.com/masterpointio/terraform-spacelift-automation module.",
"type": "object",
"required": [],
"properties": {
"kind": {
"type": "string",
"enum": ["StackConfigV1"],
"description": "The type of configuration file"
},
"automation_settings": {
"type": "object",
"description": "Settings that control the automation behavior of the stack",
"properties": {
"default_tf_workspace_enabled": {
"type": "boolean",
"description": "Whether to use the default terraform workspace"
},
"tfvars_enabled": {
"type": "boolean",
"description": "Whether to enable tfvars file loading"
}
}
},
"stack_settings": {
"type": "object",
"description": "Core stack settings, these overwrite the defaults set in the spacelift-automation module",
"properties": {
"administrative": {
"type": "boolean",
"description": "Whether the stack is administrative"
},
"additional_project_globs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional file patterns to trigger stack operations"
},
"after_apply": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after apply"
},
"after_destroy": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after destroy"
},
"after_init": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after init"
},
"after_perform": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after perform"
},
"after_plan": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after plan"
},
"after_run": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run after run (aka `finally` hook)."
},
"autodeploy": {
"type": "boolean",
"description": "Whether to automatically deploy changes"
},
"autoretry": {
"type": "boolean",
"description": "Whether to automatically retry failed runs"
},
"before_apply": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run before apply"
},
"before_destroy": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run before destroy"
},
"before_init": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run before init"
},
"before_perform": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run before perform"
},
"before_plan": {
"type": "array",
"items": {
"type": "string"
},
"description": "Commands to run before plan"
},
"branch": {
"type": "string",
"description": "Git branch to track"
},
"description": {
"type": "string",
"description": "Stack description"
},
"enable_local_preview": {
"type": "boolean",
"description": "Whether to enable local preview"
},
"enable_well_known_secret_masking": {
"type": "boolean",
"description": "Whether to enable masking of well-known secrets"
},
"github_action_deploy": {
"type": "boolean",
"description": "Whether to enable GitHub Action deployment"
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Custom labels for the stack, these merge with the default labels set in the spacelift-automation module"
},
"manage_state": {
"type": "boolean",
"description": "Whether Spacelift should manage the state"
},
"project_root": {
"type": "string",
"description": "Root directory of the project"
},
"protect_from_deletion": {
"type": "boolean",
"description": "Whether to protect the stack from deletion"
},
"repository": {
"type": "string",
"description": "Git repository URL"
},
"runner_image": {
"type": "string",
"description": "Docker image for the runner"
},
"space_id": {
"type": "string",
"description": "Spacelift space ID"
},
"space_name": {
"type": "string",
"description": "Spacelift space name, this will be translated to a space_id. Mutually exclusive with space_id"
},
"terraform_smart_sanitization": {
"type": "boolean",
"description": "Whether to enable smart sanitization"
},
"terraform_version": {
"type": "string",
"description": "Terraform version to use"
},
"worker_pool_id": {
"type": "string",
"description": "Worker pool ID"
},
"aws_integration_enabled": {
"type": "boolean",
"description": "Whether to enable AWS integration"
},
"aws_integration_id": {
"type": "string",
"description": "AWS integration ID"
},
"drift_detection_enabled": {
"type": "boolean",
"description": "Whether to enable drift detection"
},
"drift_detection_ignore_state": {
"type": "boolean",
"description": "Whether to ignore state in drift detection"
},
"drift_detection_reconcile": {
"type": "boolean",
"description": "Whether to reconcile drift automatically"
},
"drift_detection_schedule": {
"type": "array",
"items": {
"type": "string",
"pattern": "^([0-9,\\-\\*]+\\s+){4}[0-9,\\-\\*]+$"
},
"description": "Cron schedule for drift detection"
},
"drift_detection_timezone": {
"type": "string",
"description": "Timezone for drift detection schedule"
},
"destructor_enabled": {
"type": "boolean",
"description": "Whether to enable the stack destructor"
}
}
}
}
}