-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
115 lines (90 loc) · 2.2 KB
/
variables.tf
File metadata and controls
115 lines (90 loc) · 2.2 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
variable "base_name" {
default = "sakuten"
}
variable "aws_region" {
description = "The AWS region to create things in."
default = "ap-northeast-1"
}
variable "az_count" {
description = "Number of AZs to cover in a given AWS region"
default = "2"
}
variable "aws_access_key" {}
variable "aws_secret_key" {}
variable "secret_key" {}
variable "recaptcha_secret_key" {}
variable "db_username" {}
variable "db_password" {}
variable "dbgen_schedule" {}
variable "acme_email" {}
variable "admin_secret_id" {}
variable "ssh_public_key" {}
variable "ecs_image_url" {
default = "sakuten/backend:latest"
}
variable "acme_server_url" {
default = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
variable "db_instance_type" {
default = "db.t2.2xlarge"
}
variable "instance_type" {
default = "t2.large"
description = "AWS instance type"
}
variable "asg_min" {
description = "Min numbers of servers in ASG"
default = "3"
}
variable "asg_max" {
description = "Max numbers of servers in ASG"
default = "5"
}
variable "asg_desired" {
description = "Desired numbers of servers in ASG"
default = "4"
}
variable "admin_cidr_ingress" {
description = "CIDR to allow tcp/22 ingress to EC2 instance"
}
variable "container_port" {
default = "80"
}
variable "alb_container_port" {
default = "8080"
}
variable "domain" {
default = "sakuten.jp"
}
variable "netlify_domain" {
default = "sakuten.netlify.com"
}
variable "health_check_path" {
default = "/health"
}
variable "dbgen_archive_path" {
default = "dbgen_function.zip"
}
variable "drawer_archive_path" {
default = "drawer_function.zip"
}
variable "drawer_source_path" {
default = "drawer/"
}
/* variable "start_datetime" { */
/* default = "2018-9-16 8:40:00" */
/* } */
/* variable "end_datetime" { */
/* default = "2018-9-17 16:00:00" */
/* } */
/* variable "timepoints" { */
/* default = "[[\\\"8:50\\\", \\\"9:20\\\"], [\\\"10:15\\\", \\\"10:45\\\"], [\\\"12:25\\\", \\\"12:55\\\"], [\\\"13:50\\\", \\\"14:20\\\"]]" */
/* } */
variable "tps" {
default = [
"cron(23 0 16,17 9 ? 2018)",
"cron(48 1 16,17 9 ? 2018)",
"cron(58 3 16,17 9 ? 2018)",
"cron(23 5 16,17 9 ? 2018)",
]
}