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:
commit
e295a5ea07
|
@ -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]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue