-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
147 lines (121 loc) · 3.53 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
//
// Variables specific to module label
//
variable "attributes" {
description = "Suffix name with additional attributes (policy, role, etc.)"
type = "list"
default = []
}
variable "delimiter" {
description = "Delimiter to be used between `name`, `namespaces`, `attributes`, etc."
default = "-"
}
variable "environment" {
description = "Environment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. Depending on namespacing options)"
default = "mgmt"
}
variable "name" {
description = "Base name for resources"
default = "nexus"
}
variable "namespace-env" {
description = "Prefix name with the environment. If true, format is: {env}-{name}"
default = true
}
variable "namespace-org" {
description = "Prefix name with the organization. If true, format is: {org}-{env namespaced name}. If both env and org namespaces are used, format will be {org}-{env}-{name}"
default = false
}
variable "organization" {
description = "Organization name (Top level namespace)."
default = "appzen"
}
variable "tags" {
description = "A map of additional tags"
type = "map"
default = {}
}
//
// Variables specific to Nexus module
//
variable "acm_cert_domain" {
description = "Domain name of ACM-managed certificate"
type = "string"
default = ""
}
variable "aws_profile" {
default = ""
}
variable "docker_image" {
description = "Docker image to use for task"
type = "string"
default = "sonatype/nexus3"
}
variable "docker_memory" {
description = "Hard limit on memory use for task container (default 256)"
default = 2048
}
variable "docker_memory_reservation" {
description = "Soft limit on memory use for task container (default 128)"
default = 2048
}
variable "ecs_cluster_arn" {
description = "ARN of ECS cluster in which the service will be deployed"
type = "string"
default = ""
}
variable "ecs_security_group_id" {
description = "Security group ID of ECS cluster in which the service will be deployed"
type = "string"
default = ""
}
variable "ecs_desired_count" {
description = "Desired number of containers in the task (default 1)"
type = "string"
default = 1
}
variable "instance_type" {
description = "AWS Instance type, if you change, make sure it is compatible with AMI, not all AMIs allow all instance types "
default = "t3.medium"
}
variable "key_name" {
description = "SSH key name to use"
default = "devops-2018-12-04"
}
variable "lb_enable_https" {
description = "Enable HTTPS listener in LB (http or https MUST be enabled)"
default = "false"
}
variable "lb_enable_http" {
description = "Enable HTTP listener in LB (http or https MUST be enabled)"
default = "true"
}
variable "lb_https_ports" {
default = "443"
}
variable "lb_internal" {
description = "Configure LB as internal-only"
default = "true"
}
variable "lb_ingress_cidr_blocks" {
description = "CIDR block to whitelist for the load balancer"
type = "list"
default = ["0.0.0.0/0"]
}
variable "lb_subnet_ids" {
description = "VPC subnet IDs in which to create the LB (unnecessary if neither lb_enable_https or lb_enable_http are true)"
type = "list"
default = []
}
variable "mount_point" {
description = "Host directory to map as /nexus-data in container"
default = ""
}
variable "region" {
default = "us-east-1"
}
variable "vpc_id" {
description = "ID of VPC in which ECS cluster is located"
type = "string"
default = ""
}