Say I have this case where
- I have to run some test with dataflow
- inside this dataflow job I need to access a gcs bucket and save my output there.
- I will need to run the dataflow job with my own SA instead of the default SA.
I created a Google Service Account to run my dataflow job. But after I enabled the dataflow API. I end up having 2 SA in front of me.
- the service account agent -->
[email protected]
- the dataflow job runner service account -->
[email protected]
It got me really confused to see what the official document says
Some Google Cloud services have Google-managed service accounts that allow the services to access your resources. These service accounts are sometimes known as service agents.
If I create a dataflow job to run with the [email protected]
SA, I suppose I'd need to grant the roles/storage.objectAdmin
for it.
The question is
- Do I need to grant any permission to the service account agent?
- What does the service account agent actually do, what does it has to access any resource?