Skip to content

Commit

Permalink
Toggle for debug (#412)
Browse files Browse the repository at this point in the history
* Add mode variable which can be turned off after debugging

* Fix spacing

Co-authored-by: johnpaul <[email protected]>
  • Loading branch information
johncassil and johnpaul authored Sep 13, 2022
1 parent f8bf7ca commit aff8873
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/terraform/gcp/config.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 1.1
app:
name: ${system}
env: ${env}
mode: release
mode: ${mode}
port: ${port}
trackerDomain: ${trackerDomain}
enableConfigRoute: false
Expand Down
1 change: 1 addition & 0 deletions deploy/terraform/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ resource "google_secret_manager_secret_version" "buz_config" {
project = var.gcp_project,
system = var.system,
env = var.env,
mode = var.buz_mode,
port = var.buz_service_container_port
trackerDomain = var.buz_domain,
cookieDomain = local.cookie_domain,
Expand Down
6 changes: 6 additions & 0 deletions deploy/terraform/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ variable "buz_version" {
type = string
}

variable "buz_mode" {
description = "The mode of Buz to run. \n\nExamples: ['debug', 'release']"
type = string
default = "release"
}

variable "buz_service_timeout_seconds" {
description = "The service timeout in seconds"
type = number
Expand Down

0 comments on commit aff8873

Please sign in to comment.