Fetches service-account impersonation setup values from Vault GET /integration/gcp/config for the current workspace. Grant roles/iam.serviceAccountTokenCreator on your customer service account to bastion_service_account_email. The customer service account email, not the bastion email, belongs on your sg_secret.
# Scoped to provider workspace_id when org_id is omitted.
# Grant Token Creator on YOUR customer service account to the bastion principal;
# do not put the bastion email into an sg_secret as the customer account.
# WARNING: If credentials are later added to sg_secret, they remain in
# Terraform state; use an encrypted, access-controlled state backend.
data "sg_vault_gcp_config" "workspace" {}
output "stackgen_bastion_service_account" {
value = data.sg_vault_gcp_config.workspace.bastion_service_account_email
}
org_id (String) Workspace ID to scope the Vault lookup. Falls back to provider workspace_id when omitted.bastion_service_account_email (String) StackGen bastion service account email. Grant this principal roles/iam.serviceAccountTokenCreator on your customer service account; do not use it as the customer service account email on sg_secret.iam_setup_command (String) Example gcloud command to grant Token Creator on your customer service account to the StackGen bastion service account.required_roles_hint (String) Guidance on IAM roles for the customer service account and its Token Creator binding.