-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
97 lines (81 loc) · 2.09 KB
/
variables.tf
File metadata and controls
97 lines (81 loc) · 2.09 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
96
97
///////////////////////
// REQUIRED
///////////////////////
variable "cb_username" {
description = "CanaryBit username"
type = string
sensitive = true
}
variable "cb_password" {
description = "CanaryBit password"
type = string
sensitive = true
}
variable "cvm_name" {
description = "Confidential VM name"
type = string
}
variable "cvm_ssh_pubkey" {
description = "Path to the public key used for SSH connection"
type = string
}
variable "cvm_size" {
description = "Supported sizes are `Standard_DC*` or `Standard_EC*` series"
type = string
validation {
condition = length(regexall("^Standard_[D,E]C+", var.cvm_size)) > 0
error_message = "Valid values are Standard_DC* or Standard_EC* series"
}
}
variable "az_resource_group_name" {
description = "Azure Resource Group Name"
type = string
}
///////////////////////
// DEFAULTS
///////////////////////
variable "remote_attestation" {
description = "Enable CanaryBit Remote Attestation"
type = object({
environments = string
cbinspector_url = optional(string, "https://api.inspector.confidentialcloud.io")
cbclient_version = optional(string, "0.2.4")
cbcli_version = optional(string, "0.2.5")
signing_key = optional(string)
})
default = null
validation {
condition = contains(["snp", "tdx"], var.remote_attestation.environments)
error_message = "The value has to be one of the following: ['snp', 'tdx']"
}
}
variable "cvm_os" {
description = "URN of the OS image"
type = string
default = "canonical:ubuntu-24_04-lts:cvm:latest"
}
variable "cvm_username" {
description = "CVM Username for SSH login"
type = string
default = "tower"
}
variable "cvm_disk_size_gb" {
description = "CVM Disk size"
type = string
default = "30"
}
variable "cvm_ports_open" {
description = "List of CVM open network ports"
type = list(string)
default = []
}
variable "cvm_ssh_enabled" {
description = "Enable/Disable SSH login"
type = bool
default = null
}
variable "az_region" {
description = "Azure Region. Defaults to the AZ Resource Group location."
type = string
default = null
}