Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor default google_compute_region_backend_service timeout_sec to… #55

Merged
merged 2 commits into from Jun 24, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
3 changes: 1 addition & 2 deletions main.tf
Expand Up @@ -46,7 +46,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"]
session_affinity = var.session_affinity
dynamic "backend" {
for_each = var.backends
Expand Down Expand Up @@ -128,4 +128,3 @@ resource "google_compute_firewall" "default-hc" {
target_tags = var.target_tags
target_service_accounts = var.target_service_accounts
}