Rename attribute secret.secret to secret.name

This commit is contained in:
Julio Diez 2023-12-18 11:42:57 +01:00
parent bc4f89d9dc
commit 4c9243017c
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ resource "google_cloud_run_v2_service" "service" {
dynamic "secret" {
for_each = volumes.value.secret == null ? [] : [""]
content {
secret = volumes.value.secret.secret
secret = volumes.value.secret.name
default_mode = volumes.value.secret.default_mode
dynamic "items" {
for_each = volumes.value.secret.path == null ? [] : [""]

View File

@ -203,7 +203,7 @@ variable "volumes" {
description = "Named volumes in containers in name => attributes format."
type = map(object({
secret = optional(object({
secret = string
name = string
default_mode = optional(string)
path = optional(string)
version = optional(string)