-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
88 lines (77 loc) · 2.31 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
variable "hub_info" {
type = object({
hub_ip_address = string
hub_private_ssh_key_path = string
hub_ssh_user = string
})
nullable = false
description = "Hub info"
}
variable "hub_proxy_info" {
type = object({
proxy_address = string
proxy_private_ssh_key_path = string
proxy_ssh_user = string
})
description = "Proxy address, private key file path and user used for ssh to a private DSF Hub. Keep empty if a proxy is not used."
default = {
proxy_address = null
proxy_private_ssh_key_path = null
proxy_ssh_user = null
}
}
variable "assignee_gw" {
type = string
description = "jsonar uid of the assignee DSF Agentless Gateway"
nullable = false
validation {
condition = length(var.assignee_gw) >= 35
error_message = "Should be uuid in the form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
variable "assignee_role" {
type = string
description = "IAM role of the asset assignee"
nullable = false
}
variable "usc_access_token" {
type = string
description = "DSF Hub access token with USC scope"
}
variable "database_details" {
type = object({
db_username = string
db_password = string
db_arn = string
db_port = number
db_engine = string
db_identifier = string
db_address = string
db_name = string
})
description = "database details"
nullable = false
validation {
condition = contains(["mysql", "postgres", "sqlserver-ex"], var.database_details.db_engine)
error_message = "Allowed values for db engine: 'mysql', 'postgres', 'sqlserver-ex'"
}
}
variable "terraform_script_path_folder" {
type = string
description = "Terraform script path folder to create terraform temporary script files on a private DSF node. Use '.' to represent the instance home directory"
default = null
validation {
condition = var.terraform_script_path_folder != ""
error_message = "Terraform script path folder cannot be an empty string"
}
}
variable "enable_audit" {
type = bool
description = "Enable audit for asset"
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}