-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
50 lines (45 loc) · 1.45 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
variable "aws_region" {
description = "AWS Region that our deployment is targetting"
type = string
default = "us-east-2"
}
variable "default_resource_tags" {
description = "List of tags to apply to all resources created in AWS"
type = map(string)
default = {
environment : "development"
purpose : "vendorcorp"
owner : "[email protected]"
sonatype-group : "se"
vendorcorp-purpose : "tools"
}
}
# See https://docs.sonatype.com/display/OPS/Shared+Infrastructure+Initiative
variable "environment" {
description = "Used as part of Sonatype's Shared AWS Infrastructure"
type = string
default = "production"
}
variable "target_namespace" {
description = "Namespace to create and deploy Nexus Repository Manager into."
type = string
default = "tools-nexus-iq-server"
}
variable "nxrm_instance_purpose" {
description = "Purpose of this NXRM installation - i.e. Vendor Corp, or other."
type = string
default = "vendorcorp"
validation {
condition = contains(["se", "vendorcorp"], var.nxrm_instance_purpose)
error_message = "Valid values for var: nxrm_instance_purpose are (se, vendorcorp)."
}
}
variable "pgsql_password" {
description = "Password for the main account in PostgreSQL Cluster"
type = string
sensitive = true
validation {
condition = length(var.pgsql_password) > 0
error_message = "PostgreSQL password must be supplied."
}
}