From 4e586a7a44151078329972b38d553748ee000983 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Mon, 5 Aug 2024 23:21:44 +0200 Subject: [PATCH] fix: Update the format of "id" output in the "simple-sa" module (#123) --- modules/simple-sa/README.md | 2 +- modules/simple-sa/outputs.tf | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/simple-sa/README.md b/modules/simple-sa/README.md index a9668b2..0c417d5 100644 --- a/modules/simple-sa/README.md +++ b/modules/simple-sa/README.md @@ -38,6 +38,6 @@ module "sa" { | email | Service account email | | env\_vars | Exported environment variables | | iam\_email | IAM format service account email | -| id | Service account id and email | +| id | Service account id in the format 'projects/{{project}}/serviceAccounts/{{email}}' | 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" {