Add bug fix to allow to use Secret Manager secrets to mount files in Cloud Function
This commit is contained in:
@@ -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]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user