-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
33 lines (30 loc) · 1.5 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
variable "sonar_version" {
type = string
default = "4.12"
description = "The Sonar version to install. Supported versions are: 4.9 and up. Both long and short version formats are supported, for example, 4.12.0.10 or 4.12. The short format maps to the latest patch."
}
variable "installation_s3_bucket" {
type = object({
bucket = string
region = string
})
default = {
bucket = "1ef8de27-ed95-40ff-8c08-7969fc1b7901"
region = "us-east-1"
}
description = "S3 bucket containing the installation files for the EDF Hub, Agentless Gateway or POC DAM Agent. Use default to get Imperva's bucket."
}
variable "installation_s3_key" {
type = string
description = "Name and prefix of the installation file of the EDF Hub, Agentless Gateway or POC DAM Agent in the S3 bucket. Keep empty if you prefer to use the sonar_version variable."
default = null
}
variable "dra_version" {
type = string
default = "4.13"
description = "The DRA version to install. Supported versions are 4.11.0.10 and up. Both long and short version formats are supported, for example, 4.11.0.10 or 4.11. The short format maps to the latest patch."
validation {
condition = !startswith(var.dra_version, "4.10.") && !startswith(var.dra_version, "4.9.") && !startswith(var.dra_version, "4.8.") && !startswith(var.dra_version, "4.3.") && !startswith(var.dra_version, "4.2.") && !startswith(var.dra_version, "4.1.")
error_message = "The dra_version value must be 4.11.0.10 or higher"
}
}