forked from FightPandemics/FightPandemics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
57 lines (56 loc) · 1.02 KB
/
main.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
variable "env_name" {
type = string
}
variable "fp_context" {
type = string
}
variable "auth_secret_key" {
type = string
}
variable "auth_client_id" {
type = string
}
variable "mongo_uri" {
type = string
default = "localhost:27017"
}
module "main" {
source = "github.com/FightPandemics/tf-fargate-task//module"
image_tag = var.env_name
fp_context = var.fp_context
subdomain = var.env_name
backend_env_variables = [
{
name = "PORT"
value = "8000"
},
{
name = "MONGO_URI"
value = var.mongo_uri
},
{
name = "GEO_SERVICE_URL"
value = "localhost:5000"
},
{
name = "AUTH_STATE"
value = "fight-pandemics"
},
{
name = "AUTH_APP_URL"
value = "http://localhost:8000"
},
{
name = "AUTH_SECRET_KEY"
value = var.auth_secret_key
},
{
name = "AUTH_DOMAIN"
value = "fightpandemics.eu.auth0.com"
},
{
name = "AUTH_CLIENT_ID"
value = var.auth_client_id
}
]
}