-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathvariables.tf
103 lines (82 loc) · 3.15 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
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 metabase will be hosted. Example: metabase.mycompany.com"
}
variable "zone_id" {
description = "(Required) https://www.terraform.io/docs/providers/aws/r/route53_record.html#zone_id"
}
variable "certificate_arn" {
description = "(Required) https://www.terraform.io/docs/providers/aws/r/lb_listener.html#certificate_arn"
}
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 = "metabase"
}
variable "tags" {
description = "(Optional) Tags applied to all resources"
default = {}
}
variable "image" {
description = "(Optional) https://hub.docker.com/r/metabase/metabase"
default = "metabase/metabase"
}
variable "cpu" {
description = "(Optional) https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-cpu-memory-error.html"
default = "512"
}
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 "max_capacity" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#max_capacity"
default = "16"
}
variable "desired_count" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/ecs_service.html#desired_count"
default = "2"
}
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 "internet_egress" {
description = "(Optional) Grant internet access to the Metabase service"
default = true
}
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 "snapshot_identifier" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#snapshot_identifier"
default = ""
}
variable "environment" {
description = "(Optional) Additional container environment variables"
default = []
}
variable "java_timezone" {
description = "(Optional) https://www.metabase.com/docs/v0.21.1/operations-guide/running-metabase-on-docker.html#setting-the-java-timezone"
default = "US/Pacific"
}
variable "db_cluster_parameter_group_name" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#db_cluster_parameter_group_name"
default = ""
}
variable "auto_pause" {
description = "(Optional) https://www.terraform.io/docs/providers/aws/r/rds_cluster.html#auto_pause"
default = false
}