Hi,
I have multiple streams configured from PostgreSQL to BigQuery. I want to determine the load these streams are generating for BigQuery and need to know which Service Accounts (SAs) they are using. I checked the BQ destination profile in the GCP Console, but could only find dataset information. I also searched through other configurations and used some commands in the gcloud CLI, but couldn't find the specific Service Accounts being used by GCP Datastream to work with BigQuery.
Could you please advise me on where to find this information?
Regards,
Unfortunately, Google Cloud Datastream doesn't explicitly display the specific service account used for its integration with BigQuery in a straightforward manner. However, there are several methods you can use to deduce the service accounts involved:
Using Cloud Audit Logs:
datastream.googleapis.com
.Using BigQuery Jobs:
Using the gcloud CLI:
gcloud datastream streams describe [STREAM_NAME]
command.Using the Datastream API:
Checking IAM Roles:
datastream.serviceAgent
).Additional Considerations: