Merge pull request #1703 from luigi-bitonti/luigi-bitonti/cf_bug_fix

Add bug fix to allow to use Secret Manager secrets to mount files in …
This commit is contained in:
Julio Castillo 2023-09-25 15:27:02 +02:00 committed by GitHub
commit e295a5ea07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -111,8 +111,8 @@ resource "google_cloudfunctions_function" "function" {
for_each = secret.value.versions
iterator = version
content {
path = split(":", version)[1]
version = split(":", version)[0]
path = split(":", version.value)[1]
version = split(":", version.value)[0]
}
}
}

View File

@ -133,8 +133,8 @@ resource "google_cloudfunctions2_function" "function" {
for_each = secret.value.versions
iterator = version
content {
path = split(":", version)[1]
version = split(":", version)[0]
path = split(":", version.value)[1]
version = split(":", version.value)[0]
}
}
}