From 08164b5c77730c73be863571e840e07c4859d7fd Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Mon, 5 Aug 2024 20:49:01 +0200 Subject: [PATCH] fix: Update the format of "id" output in the "simple-sa" module Make the output "id" returning just a service account ID instead of the map with ID and an e-mail. There is already a separate output for the e-mail, called "email". --- modules/simple-sa/outputs.tf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/simple-sa/outputs.tf b/modules/simple-sa/outputs.tf index 1c4c286..4c391bd 100644 --- a/modules/simple-sa/outputs.tf +++ b/modules/simple-sa/outputs.tf @@ -25,11 +25,8 @@ output "iam_email" { } output "id" { - description = "Service account id and email" - value = { - id = google_service_account.sa.account_id, - email = google_service_account.sa.email - } + description = "Service account id in the format 'projects/{{project}}/serviceAccounts/{{email}}'" + value = google_service_account.sa.account_id } output "env_vars" {