Skip to content

Commit 724e976

Browse files
google_dataflow_job - return more fields on the read (#3880) (#2398)
Signed-off-by: Modular Magician <[email protected]>
1 parent 20fccdc commit 724e976

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changelog/3880.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
dataflow: changed `google_dataflow_job` to return more fields on the read
3+
```

google-beta/resource_dataflow_job.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ func resourceDataflowJobRead(d *schema.ResourceData, meta interface{}) error {
279279
optionsMap := sdkPipelineOptions["options"].(map[string]interface{})
280280
d.Set("template_gcs_path", optionsMap["templateLocation"])
281281
d.Set("temp_gcs_location", optionsMap["tempLocation"])
282+
d.Set("machine_type", optionsMap["machineType"])
283+
d.Set("network", optionsMap["network"])
284+
d.Set("service_account_email", optionsMap["serviceAccountEmail"])
285+
d.Set("additional_experiments", optionsMap["experiments"])
282286

283287
if _, ok := dataflowTerminalStatesMap[job.CurrentState]; ok {
284288
log.Printf("[DEBUG] Removing resource '%s' because it is in state %s.\n", job.Name, job.CurrentState)

0 commit comments

Comments
 (0)