When we perform the ReadFromBigquery transformation, Dataflow creates a temporary dataset in which it stores the data before reading it.
My user is only allowed to create a dataset in Europe Region (not in the US), and it seems that dataflow is using the US region by default. How can I ask dataflow to create the Temp Dataset in Europe ?
Important: the tables that I am reading are in Europe and I specified "Region = Europe" in pipeline options
Please find Below:
- The read transformation: read = ( p | 'ReadForVal' >> beam.io.ReadFromBigQuery(query='SELECT id_ligne FROM project.dataset.table', use_standard_sql = True))
- The error: content <{ "error": { "code": 403, "message": "US violates constraint constraints/gcp.resourceLocations on the resource projects/irn-71631-lab-80/datasets/temp_dataset_243e02d1cda342d4962195b28cf33bba", "errors": [ { "message": "US violates constraint constraints/gcp.resourceLocations on the resource projects/irn-71631-lab-80/datasets/temp_dataset_243e02d1cda342d4962195b28cf33bba", "domain": "global", "reason": "policyViolation" } ], "status": "PERMISSION_DENIED" } } >
I am struggling for a few days now... Thank you a lot for your help!