Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion terraform/django.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ module "django" {
subdomain_name = "api"
django_settings_module = "geoinsight.settings.heroku_production"

ec2_worker_instance_quantity = 1
ec2_worker_ssh_public_key = file("${path.module}/ssh-key.pub")

additional_django_vars = {
DJANGO_GEOINSIGHT_WEB_URL = "https://www.geoinsight.kitware.com/"
DJANGO_DATABASE_POOL_MAX_SIZE = "12"
Expand All @@ -24,7 +27,7 @@ module "django" {
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
}
Expand All @@ -37,3 +40,7 @@ resource "heroku_addon" "redis" {
output "dns_nameservers" {
value = aws_route53_zone.this.name_servers
}

output "ec2_worker_hostnames" {
value = module.django.ec2_worker_hostnames
}
1 change: 1 addition & 0 deletions terraform/ssh-key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDMjZ3bqIxJyPvbjWbebgs36LcSyQZxHenRl/Il8YvP4k5ifmJWHQjRFPm0pCdPjepmV8x27ScdM33VJnDmqhOXAL2P/E2YsUAjf/M8H1CGFmGdZs78BCHDp92qclbM4mHjwhwa5pskPSzFgid250uVNECG6BCOJ4hRAYt9NJbpFesHZyNRkuS1gP4tSz3cElcTrl9QW4106QT8v4EwJdkWcuGjincErfbBJxzuUhuzCRlhiDb83SY0E5p1kMF3B9fLAUxdUFh/gUbVQ5Wsfi4FVuiresEhEaqSwS9cPeGi0CtyJ2CdJI2iQQu+n1BA9aCVQ7bkmjJ1j8ZvV5FAbY1Siq6Coq98dyR89fx5ZFpU5SMUMTYeVKOgQyqrVv0eB39kRd5w4c9agDvwKGmHGNE+ortCHzZL41TWJyPzwUZpP7DpusA4zGERoVYOfz/R1mCuQ7sZGk65aViJSh2r7WiC0uQz2DIXxE66CK3MwXJ0OCdfeKq7x4KpDAjW9ZGw7Rc= anne@KRS-3128