-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputs.tf
More file actions
95 lines (79 loc) · 2.34 KB
/
Copy pathinputs.tf
File metadata and controls
95 lines (79 loc) · 2.34 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
variable "name" {
description = "Block Volume display name."
type = string
}
variable "compartment_ocid" {
description = "Compartment OCID where the Block Volume will be created."
type = string
}
variable "availability_domain" {
description = "Availability domain name where the Block Volume will be created."
type = string
}
variable "size_in_gbs" {
description = "Block Volume size in GB."
type = number
}
variable "vpus_per_gb" {
description = "Performance tier in VPUs per GB. Valid values: 0, 10, 20, 30."
type = number
default = 10
validation {
condition = contains([0, 10, 20, 30], var.vpus_per_gb)
error_message = "vpus_per_gb must be one of: 0, 10, 20, 30."
}
}
variable "defined_tags" {
description = "Defined tags applied to created resources."
type = map(string)
default = {}
}
variable "freeform_tags" {
description = "Freeform tags applied to created resources."
type = map(string)
default = {}
}
variable "attach_to_instance" {
description = "If true, attach the Block Volume to an OCI compute instance."
type = bool
default = false
}
variable "instance_id" {
description = "Target OCI compute instance OCID. Required when attach_to_instance is true."
type = string
default = null
}
variable "attachment_type" {
description = "Volume attachment type. v1 supports iscsi."
type = string
default = "iscsi"
validation {
condition = contains(["iscsi"], var.attachment_type)
error_message = "Only attachment_type = \"iscsi\" is supported in v1."
}
}
variable "device" {
description = "Optional device name requested for the volume attachment."
type = string
default = null
}
variable "is_agent_auto_iscsi_login_enabled" {
description = "Enable Oracle Cloud Agent automatic iSCSI login/logout for iSCSI attachments."
type = bool
default = true
}
variable "is_read_only" {
description = "Create the volume attachment in read-only mode."
type = bool
default = false
}
variable "is_shareable" {
description = "Create the volume attachment in shareable mode."
type = bool
default = false
}
variable "use_chap" {
description = "Use CHAP authentication for the iSCSI volume attachment."
type = bool
default = false
}