-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
33 lines (28 loc) · 1.01 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
variable "name" {
description = "(Required) The name of the project."
type = string
}
variable "description" {
description = "(Optional) A description of the project."
type = string
default = "Managed by Terraform."
}
variable "level" {
description = "(Optional) Choose to create a project for organization or repository. Valid values are `ORGANIAZTION` and `REPOSITORY`. The default is `ORGANIZATION` level, so the project is managed by organization level."
type = string
default = "ORGANIZATION"
validation {
condition = contains(["REPOSITORY", "ORGANIZATION"], var.level)
error_message = "The level should be one of `REPOSITORY`, `ORGANIZATION`."
}
}
variable "repository" {
description = "(Optional) The repository to create the project for. Only need when `level` is `REPOSITORY`."
type = string
default = null
}
variable "columns" {
description = "(Optional) A list of columns for the project."
type = set(string)
default = []
}