-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdjango.tf
More file actions
39 lines (33 loc) · 1.14 KB
/
django.tf
File metadata and controls
39 lines (33 loc) · 1.14 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
resource "aws_route53_zone" "this" {
name = "geoinsight.kitware.com"
}
data "heroku_team" "this" {
name = "kitware"
}
module "django" {
source = "kitware-resonant/resonant/heroku"
version = "3.1.0"
project_slug = "geoinsight"
route53_zone_id = aws_route53_zone.this.zone_id
heroku_team_name = data.heroku_team.this.name
subdomain_name = "api"
django_settings_module = "geoinsight.settings.heroku_production"
additional_django_vars = {
DJANGO_GEOINSIGHT_WEB_URL = "https://www.geoinsight.kitware.com/"
DJANGO_DATABASE_POOL_MAX_SIZE = "12"
DJANGO_SENTRY_DSN = "https://5302701c88f1fa6ec056e0c269071191@o267860.ingest.us.sentry.io/4510620385804288"
}
django_cors_allowed_origins = [
"https://www.geoinsight.kitware.com"
]
heroku_postgresql_plan = "essential-0"
# Disable workers; they require "tasks" dependencies, which are too large for Heroku to install
heroku_worker_dyno_quantity = 0
}
resource "heroku_addon" "redis" {
app_id = module.django.heroku_app_id
plan = "heroku-redis:mini"
}
output "dns_nameservers" {
value = aws_route53_zone.this.name_servers
}