-
Notifications
You must be signed in to change notification settings - Fork 40
/
locals.tf
55 lines (55 loc) · 1.2 KB
/
locals.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
locals {
environment_variables = concat(
var.additional_env_vars, # add additional environment variables
[
{
name = "NODE_ENV"
value = var.node_env
},
{
name = "FORCE_DEPLOYMENT"
value = tostring(var.force_deployment)
},
{
name = "POSTGRES_DB"
value = "hammerhead_production"
},
{
name = "POSTGRES_HOST"
value = aws_db_instance.this.address
},
{
name = "POSTGRES_SSL_ENABLED"
value = "true"
},
{
name = "POSTGRES_PORT"
value = "5432"
},
{
"name" = "POSTGRES_USER",
"value" = var.rds_username
},
{
"name" = "POSTGRES_PASSWORD",
"value" = random_string.rds_password.result
},
{
"name" : "JWT_SECRET",
"value" : random_string.jwt_secret.result
},
{
"name" : "ENCRYPTION_KEY",
"value" : random_string.encryption_key.result
},
{
"name" : "LICENSE_KEY",
"value" : var.retool_license_key
},
{
"name": "DEPLOYMENT_TEMPLATE_TYPE"
"value": "aws-ecs-ec2-terraform-deprecated"
}
]
)
}