Skip to content

Commit

Permalink
fix: Update the format of "id" output in the "simple-sa" module (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 authored Aug 5, 2024
1 parent ae592d2 commit 4e586a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/simple-sa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}' |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7 changes: 2 additions & 5 deletions modules/simple-sa/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 4e586a7

Please sign in to comment.