Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Allow service account to launch Dataflow job #1450

Merged
merged 2 commits into from
Sep 28, 2020
Merged

Conversation

wintwoo
Copy link
Contributor

@wintwoo wintwoo commented Sep 28, 2020

  1. Grant cloud-scheduler-demo service account "Dataflow Worker" IAM role, which is needed to manage GCE resources used by Dataflow. Alternatives are either to:

a) Grant "Service Account User" role for cloud-scheduler-demo to the default GCE service account, or
b) Create a separate service account altogether with the "Dataflow Worker" IAM role, and specify this in (2).

  1. Include "serviceAccountEmail" in the Dataflow template paramters. You can omit this if you've granted "Service Account User" to cloud-scheduler-demo for the default GCE service account.

1) Grant cloud-scheduler-demo service account "Dataflow Worker" IAM role, which is needed to manage GCE resources used by Dataflow.  Alternatives are either to:

a) Grant "Service Account User" role for cloud-scheduler-demo to the default GCE service account, or 
b) Create a separate service account altogether with the "Dataflow Worker" IAM role, and specify this in (2).

2) Include "serviceAccountEmail" in the Dataflow template paramters.  You can omit this if you've granted "Service Account User" to cloud-scheduler-demo for the default GCE service account.
@google-cla google-cla bot added the cla: yes label Sep 28, 2020
@ToddKopriva ToddKopriva self-requested a review September 28, 2020 14:51
@ToddKopriva ToddKopriva self-assigned this Sep 28, 2020
@ToddKopriva ToddKopriva merged commit 294f266 into master Sep 28, 2020
@ToddKopriva ToddKopriva deleted the wintwoo-patch-1 branch September 28, 2020 14:56
xiangshen-dk pushed a commit to xiangshen-dk/community that referenced this pull request Jan 24, 2022
1) Grant cloud-scheduler-demo service account "Dataflow Worker" IAM role, which is needed to manage GCE resources used by Dataflow.  Alternatives are either to:

a) Grant "Service Account User" role for cloud-scheduler-demo to the default GCE service account, or 
b) Create a separate service account altogether with the "Dataflow Worker" IAM role, and specify this in (2).

2) Include "serviceAccountEmail" in the Dataflow template paramters.  You can omit this if you've granted "Service Account User" to cloud-scheduler-demo for the default GCE service account.

Co-authored-by: Todd Kopriva <43478937+ToddKopriva@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants