-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
68 lines (54 loc) · 2.01 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
variable "private_subnet_ids" {
description = "(Required) IDs of the subnets to which the services and database will be deployed"
}
variable "public_subnet_ids" {
description = "(Required) IDs of the subnets to which the load balancer will be deployed"
}
variable "domain" {
description = "(Required) Domain where the site will be hosted. Example: this.company.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 "certificate_arn" {
description = "(Required) https://www.terraform.io/docs/providers/aws/r/lb_listener.html#certificate_arn"
}
variable "id" {
description = "(Optional) Unique identifier for naming resources"
default = "rancher"
}
variable "ssl_policy" {
description = "(Optional) https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-policy-table.html"
default = "ELBSecurityPolicy-TLS-1-2-2017-01"
}
variable "tags" {
description = "(Optional) Tags applied to all resources"
default = {}
}
variable "image" {
description = "(Optional) https://hub.docker.com/r/rancher/rancher"
default = "rancher/rancher"
}
variable "cpu" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "1024"
}
variable "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 "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 = []
}