-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
105 lines (84 loc) · 3.08 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
variable "subnet_ids" {
description = "(Required) IDs of the subnets to which the services and load balancer will be deployed"
}
variable "domain" {
description = "(Required) Domain where selenium will be hosted. Example: selenium.mycompany.com"
}
variable "zone_id" {
description = "(Required) https://www.terraform.io/docs/providers/aws/r/route53_record.html#zone_id"
}
variable "vpc_id" {
description = "(Required) https://www.terraform.io/docs/providers/aws/r/security_group.html#vpc_id"
}
variable "id" {
description = "(Optional) Unique identifier for naming resources"
default = "selenium"
}
variable "short_id" {
description = "(Optional) Short identifier for naming resources that have strict length requirements"
default = "sel"
}
variable "tags" {
description = "(Optional) Tags applied to all resources"
default = {}
}
variable "hub_image" {
description = "(Optional) https://hub.docker.com/r/selenium/hub"
default = "selenium/hub"
}
variable "firefox_image" {
description = "(Optional) https://hub.docker.com/r/selenium/node-firefox"
default = "selenium/node-firefox"
}
variable "chrome_image" {
description = "(Optional) https://hub.docker.com/r/selenium/node-chrome"
default = "selenium/node-chrome"
}
variable "opera_image" {
description = "(Optional) https://hub.docker.com/r/selenium/node-opera"
default = "selenium/node-opera"
}
variable "hub_cpu" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "1024"
}
variable "hub_memory" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "2048" # must be in integer format to maintain idempotency
}
variable "node_cpu" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "256"
}
variable "node_memory" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "512" # must be in integer format to maintain idempotency
}
variable "chrome_replicas" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/ecs_service.html#desired_count"
default = "1"
}
variable "firefox_replicas" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/ecs_service.html#desired_count"
default = "0"
}
variable "opera_replicas" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/ecs_service.html#desired_count"
default = "0"
}
variable "log_retention" {
description = "(Optional) Retention period in days for both ALB and container logs"
default = "90"
}
variable "protection" {
description = "(Optional) Protect ALB and application logs from deletion"
default = false
}
variable "environment" {
description = "(Optional) Additional container environment variables"
default = []
}
variable "hub_environment" {
description = "(Optional) Additional hub environment variables"
default = []
}