From 3d7cc9810d1df6c21cd53480963f4c70e5dd0408 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Thu, 20 May 2021 21:34:24 +0200 Subject: [PATCH] Fix output --- modules/cloud-function/outputs.tf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/cloud-function/outputs.tf b/modules/cloud-function/outputs.tf index 4b4bd9230..593a607fd 100644 --- a/modules/cloud-function/outputs.tf +++ b/modules/cloud-function/outputs.tf @@ -38,9 +38,7 @@ output "function_name" { output "service_account" { description = "Service account resource." - value = ( - var.service_account_create ? google_service_account.service_account[0] : null - ) + value = try(google_service_account.service_account[0], null) } output "service_account_email" {