Skip to content

Commit

Permalink
feat: Update google_compute_region_backend_service timeout to use sam…
Browse files Browse the repository at this point in the history
…e timeout as var.health_check (#55)

* refactor default google_compute_region_backend_service timeout_sec to a variable

* Update main.tf

Co-authored-by: Morgante Pell <morgante.pell@morgante.net>

Co-authored-by: Denis Simonovski <denis.simonovski@rackspace.com>
Co-authored-by: Morgante Pell <morgante.pell@morgante.net>
  • Loading branch information
3 people committed Jun 25, 2021
1 parent 12eb770 commit e56d959
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -12,6 +12,9 @@
\#*\#
.\#*

# JetBrains relates files
.idea

# Vim-related files
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Expand Up @@ -48,7 +48,7 @@ resource "google_compute_region_backend_service" "default" {
name = var.health_check["type"] == "tcp" ? "${var.name}-with-tcp-hc" : "${var.name}-with-http-hc"
region = var.region
protocol = var.ip_protocol
timeout_sec = 10
timeout_sec = var.health_check["timeout_sec"] == null ? 10 : var.health_check["timeout_sec"]
connection_draining_timeout_sec = var.connection_draining_timeout_sec
session_affinity = var.session_affinity
dynamic "backend" {
Expand Down

0 comments on commit e56d959

Please sign in to comment.