forked from StayWell/terraform-aws-metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
148 lines (118 loc) · 4.27 KB
/
variables.tf
File metadata and controls
148 lines (118 loc) · 4.27 KB
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
148
variable "create_cluster" {
description = "(Optional) Create an ECS cluster"
default = true
}
variable "cluster_name" {
description = "(Optional) Name of the ECS cluster"
default = "metabase"
}
variable "create_alb" {
description = "(Optional) Create an ALB"
default = true
}
variable "alb_arn" {
description = "(Optional) ARN of an existing ALB to use"
default = ""
}
variable "alb_dns_name" {
description = "(Optional) DNS name of an existing ALB to use"
default = ""
}
variable "alb_zone_id" {
description = "(Optional) Zone ID of an existing ALB to use"
default = ""
}
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 "db_dbname" {
description = "(Required) https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_db_dbname"
default = "metabase"
}
variable "db_host" {
description = "(Required) https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_db_host"
default = "metabase-db"
}
variable "db_port" {
description = "(Required) https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_db_port"
default = "5432"
}
variable "db_user" {
description = "(Required) https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_db_user"
default = "metabase"
}
variable "db_pass" {
description = "(Required) https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_db_pass"
default = "metabase"
}
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"
}