Skip to content

Commit

Permalink
Update app-engine.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlippold authored Oct 10, 2024
1 parent 1a15180 commit 53d0dc4
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions terraform/gcp/app-engine.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ resource "google_app_engine_standard_app_version" "hydroserver_django_service" {
shell = "gunicorn -b :$PORT hydroserver.wsgi"
}

# ------------------------------ #
# Scaling Configuration #
# ------------------------------ #
# ----------------------------- #
# Scaling Configuration #
# ----------------------------- #

automatic_scaling {
max_instances = 1
max_idle_instances = 1
min_idle_instances = 0
}

# ------------------------------ #
# Environment Variables #
# ------------------------------ #
# ----------------------------- #
# Environment Variables #
# ----------------------------- #

env_variables = {
"ADMIN_EMAIL" = ""
Expand All @@ -46,11 +46,9 @@ resource "google_app_engine_standard_app_version" "hydroserver_django_service" {

handlers {
url_regex = ".*"
script = "auto"
}

resources {
cpu = 1
memory = "512MB"
static_files {
path = "/"
upload_path_regex = ".*"
}
}
}

0 comments on commit 53d0dc4

Please sign in to comment.