[project-factory] Add service_agent outputs (#3750)

This commit is contained in:
Luca Prete
2026-02-19 10:08:16 +01:00
committed by GitHub
parent 8b85bd33b8
commit 90d7ffc703
2 changed files with 13 additions and 1 deletions

View File

@@ -880,7 +880,8 @@ compute.disableSerialPortAccess:
| [service_account_iam_emails](outputs.tf#L144) | Service account IAM-format emails. | |
| [service_account_ids](outputs.tf#L151) | Service account IDs. | |
| [service_accounts](outputs.tf#L158) | Service account emails. | |
| [storage_buckets](outputs.tf#L163) | Bucket names. | |
| [service_agents](outputs.tf#L163) | Service agent emails. | |
| [storage_buckets](outputs.tf#L174) | Bucket names. | |
<!-- END TFDOC -->
## Tests

View File

@@ -160,6 +160,17 @@ output "service_accounts" {
value = local.outputs_service_accounts
}
output "service_agents" {
description = "Service agent emails."
value = {
for k, v in local.projects_service_agents
: trimprefix(k, "service_agents/") => {
email = trimprefix(v, "serviceAccount:")
iamEmail = v
}
}
}
output "storage_buckets" {
description = "Bucket names."
value = merge(