Add source_md5hash to avoid inconsistent plan on updates to FAST output files

This commit is contained in:
Wiktor Niesiobędzki
2025-12-18 08:48:20 +00:00
parent cc24046be8
commit f4b8992ea5
15 changed files with 139 additions and 121 deletions

View File

@@ -18,8 +18,9 @@ output "project_id" {
}
resource "google_storage_bucket_object" "version" {
count = fileexists("fast_version.txt") ? 1 : 0
bucket = var.automation.outputs_bucket
name = "versions/3-${var.stage_config.name}-version.txt"
source = "fast_version.txt"
count = fileexists("fast_version.txt") ? 1 : 0
bucket = var.automation.outputs_bucket
name = "versions/3-${var.stage_config.name}-version.txt"
source = "fast_version.txt"
source_md5hash = filemd5("fast_version.txt")
}