generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvariables.tf
73 lines (62 loc) · 2.05 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
variable "workspaces" {
type = any
description = <<-EOF
Nested map of workspaces to create and the associated arguments they can accept:
Example:
```
workspaces = {
eastcoast = {
vars = {
AWS_REGION = {
value = "us-east-1"
}
}
}
westcoast = {...}
}
```
Arguments accepted within workspace definition:
- All arguments from [tfe_workspace](https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/resources/workspace#argument-reference). Defaults set as documented in July 2022 (v0.33.0).
- `vars` = A nested map of variables, their value and category
```
vars = {
myvar_name = {
value = "my var value"
category = "env" # valid values: "env" or "terraform", default = "env"
}
}
```
Workspace `tag_names` will attempt to combine specific tag_names and from `var.shared_workspace_tag_names`.
EOF
}
variable "shared_variable_set_ids" {
description = "A variable set ID to set to all workspaces. Use if you have a pre-existing variable set."
type = list(string)
default = []
}
# variable "shared_variable_set" {
# description = "A map of variables to create and set to all workspaces. Use if you want to share variables across all workspaces. To set per-workspace, see `var.workspaces`."
# type = map(string)
# default = {}
# }
variable "shared_workspace_tag_names" {
description = "Tag names to set for all workspaces. To set per-workspace, see `var.workspaces`."
type = list(any)
nullable = false
default = []
}
variable "vcs_repo" {
description = "Definition of the VCS repo to attach to every workspace."
default = null
type = object({
branch = optional(string)
github_app_installation_id = optional(string)
identifier = string
ingress_submodules = optional(bool)
oauth_token_id = optional(string)
})
}
variable "organization" {
description = "TFC Organization"
type = string
}