File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1
1
variable "aws_region" {
2
2
type = string
3
3
default = " us-east-1"
4
+ description = " value for the AWS region to deploy resources in, e.g. us-east-1, eu-west-2."
5
+ validation {
6
+ condition = can (regex (" ^(us|eu|ap|sa|ca)-[a-z]+-[1-9]$" , var. aws_region ))
7
+ error_message = " Invalid AWS region format. Use 'us-east-1', 'eu-west-2', etc."
8
+ }
4
9
}
5
10
6
11
variable "nbe_token" {
7
12
type = string
8
13
sensitive = true
14
+ description = " token supplied by Netbox Labs for your NetBox Enterprise instance."
15
+ validation {
16
+ condition = length (var. nbe_token ) > 0
17
+ error_message = " NetBox Enterprise token must not be empty."
18
+ }
9
19
}
10
20
11
21
variable "nbe_console_password" {
12
22
type = string
13
23
sensitive = true
24
+ description = " A password of at least 6 characters for the NetBox Enterprise console user."
25
+ validation {
26
+ condition = length (var. nbe_console_password ) >= 6
27
+ error_message = " NetBox Enterprise console password must be at least 6 characters long."
28
+ }
14
29
}
15
30
16
31
variable "nbe_admin_password" {
17
32
type = string
18
33
sensitive = true
34
+ description = " A password of at least 12 characters for the NetBox Enterprise admin user."
35
+ validation {
36
+ condition = length (var. nbe_admin_password ) >= 12
37
+ error_message = " NetBox Enterprise admin password must be at least 12 characters long."
38
+ }
19
39
}
20
40
21
41
variable "postgres_password" {
22
42
type = string
23
43
sensitive = true
44
+ description = " A password of at least 8 characters for the PostgreSQL database."
45
+ validation {
46
+ condition = length (var. postgres_password ) >= 8
47
+ error_message = " PostgreSQL password must be at least 8 characters long."
48
+ }
24
49
}
You can’t perform that action at this time.
0 commit comments