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" {