-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
49 lines (41 loc) · 1.3 KB
/
Copy pathvariables.tf
File metadata and controls
49 lines (41 loc) · 1.3 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
variable "name" {
description = "Base name for the volume(s). When volume_count > 1 a 1-based index suffix is appended (e.g. data-1, data-2)."
type = string
}
variable "size" {
description = "Size of each volume in gigabytes."
type = number
validation {
condition = var.size >= 1
error_message = "size must be at least 1 GB."
}
}
variable "volume_count" {
description = "Number of identical volumes to create. (Named volume_count because \"count\" is a reserved variable name.)"
type = number
default = 1
validation {
condition = var.volume_count >= 1
error_message = "volume_count must be at least 1."
}
}
variable "volume_type" {
description = "Cinder volume type. Leave empty to use the cloud's default type."
type = string
default = ""
}
variable "availability_zone" {
description = "Availability zone for the volume(s). Leave empty for the default."
type = string
default = ""
}
variable "metadata" {
description = "Key/value metadata applied to each volume."
type = map(string)
default = {}
}
variable "attach_to_instance_id" {
description = "If set, every created volume is attached to this instance UUID. Leave empty to create unattached volumes."
type = string
default = ""
}