From 57fe2ed42c45b1dfd0c1da01fa2f570dc3f4596f Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 24 Jan 2025 02:28:33 +0100 Subject: [PATCH] Improve terraform configs Allow string ports to set port range in hcloud firewall --- modules/infrastructure/healthchecksio.tf | 2 +- modules/infrastructure/variables.tf | 2 +- variables.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/infrastructure/healthchecksio.tf b/modules/infrastructure/healthchecksio.tf index c8de994..789cc3b 100644 --- a/modules/infrastructure/healthchecksio.tf +++ b/modules/infrastructure/healthchecksio.tf @@ -28,7 +28,7 @@ resource "healthchecksio_check" "backup" { ] timeout = 86400 - grace = 1800 + grace = 3600 } resource "healthchecksio_check" "healthcheck" { diff --git a/modules/infrastructure/variables.tf b/modules/infrastructure/variables.tf index 8889653..4f5918d 100644 --- a/modules/infrastructure/variables.tf +++ b/modules/infrastructure/variables.tf @@ -24,7 +24,7 @@ variable "services" { }))) ports = optional(list(object({ description = string - port = number + port = string protocol = string type = string }))) diff --git a/variables.tf b/variables.tf index acaf01e..e25622f 100644 --- a/variables.tf +++ b/variables.tf @@ -153,7 +153,7 @@ variable "services" { })) ports = optional(list(object({ description = string - port = number + port = string protocol = string type = string })))