forked from heoelri/locust-on-aci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
74 lines (68 loc) · 1.74 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
variable "location" {
description = "The Azure Region in which the master and the shared storage account will be provisioned."
type = string
default = "northeurope"
}
variable "environment" {
description = "Environment Resource Tag"
type = string
default = "dev"
}
variable "locust_container_image" {
description = "Locust Container Image"
type = string
default = "sebader/locust-with-plugins:latest"
}
variable "targeturl" {
description = "Target URL"
type = string
default = "https://my-sample-app.net"
}
variable "locustWorkerNodes" {
description = "Number of Locust worker instances (zero will stop master)"
type = string
default = "0"
}
variable "locustWorkerLocations" {
description = "List of regions to deploy workers to in round robin fashion"
type = list(any)
default = [
"northeurope",
"eastus2",
"southeastasia",
"westeurope",
"westus",
"australiaeast",
"francecentral",
"southcentralus",
"japaneast",
"southindia",
"brazilsouth",
"germanywestcentral",
"uksouth",
"canadacentral",
"eastus",
"uaenorth",
"koreacentral",
"eastasia",
"australiasoutheast",
"canadaeast",
"centralindia",
"japanwest",
"norwayeast",
"switzerlandnorth",
"ukwest",
"centralus",
"northcentralus",
"westcentralus",
"westus2"
]
}
variable "prefix" {
description = "A prefix used for the resource group. Must not contain any special characters. Must not be longer than 10 characters."
type = string
validation {
condition = length(var.prefix) >= 5 && length(var.prefix) <= 10
error_message = "Prefix must be between 5 and 10 characters long."
}
}