-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
58 lines (50 loc) · 1.64 KB
/
variables.tf
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
variable "additional_policies" {
type = list(string)
description = "A list of additional policy-ids to attach to every Stack"
default = []
}
variable "git_repository" {
type = string
description = "The Github Repository name containing Terraform infrastructure code"
}
variable "global_project_root" {
type = string
default = ""
description = <<EOH
The top level directory containing Terraform infrastructure code. Defaults to root level directory of the repository.
If set, all Stack dependencices and the Stack project root directory are prepended with the global_project_root value.
EOH
}
variable "global_stack_delete_protection" {
type = bool
description = "Whether to toggle on deletion prevention for all Spacelift Stacks"
default = true
}
variable "stacks" {
type = list(object({
additional_labels = optional(list(string))
name = string
description = optional(string)
dependencies = optional(list(string))
project_root = string
}))
description = "List of Spacelift Stacks to generate"
validation {
condition = length(var.stacks) > 0
error_message = "Must supply a list of stacks with a length of greater than 0"
}
}
variable "terraform_version" {
type = string
description = "The Terraform version used for every Stack"
}
variable "trunk_branch" {
type = string
default = "main"
description = "The Github repository trunk branch to detect for any changes"
}
### Cloud Integrations
variable "aws_integration_id" {
type = string
description = "The Spacelift AWS Integration Id attached to all Stacks"
}