[project-factory] Add service_agent outputs (#3750)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user