Skip to content

Commit

Permalink
add id and email output
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb committed May 11, 2024
1 parent 2b7aeaa commit e91f3aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/simple-sa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ module "sa" {
| Name | Description |
|------|-------------|
| email | Service account email |
| id | Service account id and email |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
8 changes: 8 additions & 0 deletions modules/simple-sa/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ output "email" {
description = "Service account email"
value = google_service_account.sa.email
}

output "id" {
description = "Service account id and email"
value = {
id = google_service_account.sa.account_id,
email = google_service_account.sa.email
}
}

0 comments on commit e91f3aa

Please sign in to comment.