diff --git a/main.tf b/main.tf index 1803bccf5ec549087d5b43cd264f40564d4cadc0..ae95cf5fa5fa2bfe415ab337d2b72010078448b1 100644 --- a/main.tf +++ b/main.tf @@ -84,6 +84,8 @@ resource "google_cloud_run_service" "webapp" { } } } + + timeout_seconds = var.timeout_seconds } } diff --git a/variables.tf b/variables.tf index 17f7a1fcfdc5a757d0866b832b989052052f043b..d26da139f33e39ccfed3e15c7ef66b376e962475 100644 --- a/variables.tf +++ b/variables.tf @@ -48,6 +48,11 @@ variable "memory_limit" { default = "512M" } +variable "timeout_seconds" { + description = "The maximum duration, in seconds, the instance is allowed for responding to a request. Default to 300. Maximum is 900." + default = 300 +} + variable "allow_unauthenticated_invocations" { description = <<EOI If true, the webapp will allow unauthenticated invocations. If false, the webapp requires authentication