Repository navigation
Expand file tree
/
Copy pathvariables.tf
More file actions
52 lines (46 loc) · 1.42 KB
/
Copy pathvariables.tf
File metadata and controls
52 lines (46 loc) · 1.42 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
variable "name" {
description = "Name of the Keystone (Identity v3) user."
type = string
validation {
condition = length(var.name) > 0
error_message = "The user name must not be empty."
}
}
variable "password" {
description = <<-EOT
Initial password for the user. Leave empty ("") to create the user without a
password (the recommended approach — drive access through application
credentials or federation instead). This value is write-only: it is never
exposed as a module output.
EOT
type = string
default = ""
sensitive = true
}
variable "default_project_id" {
description = "ID of the project to scope the user to by default. Empty string leaves it unset."
type = string
default = ""
}
variable "domain_id" {
description = "ID of the domain that owns the user. Empty string uses the provider's default domain."
type = string
default = ""
}
variable "enabled" {
description = "Whether the user is enabled and able to authenticate."
type = bool
default = true
}
variable "role_assignments" {
description = <<-EOT
Roles to grant the user. Each entry assigns role_name on project_id. Role
names are resolved to IDs via a data source, so you reference roles the way
operators do (e.g. "member", "reader", "admin").
EOT
type = list(object({
role_name = string
project_id = string
}))
default = []
}