How to disable public ips when invoking the dataflow job using airflow DataflowStartFlexTemplateOperator Operator #34762
Unanswered
Harshith246
asked this question in
General
Replies: 1 comment
-
I had the same problem. To fix it I added this: Here's an example: body = {
"launchParameter": {
"jobName": "dataflow-airflow",
"parameters": {
"input": input_data,
"output": output_data
},
"containerSpecGcsPath": my_flex_template,
"environment" : {
"ipConfiguration": "WORKER_IP_PRIVATE"
}
},
"validateOnly": False
} Documentation: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I am trying to invoke the dataflow job using DataflowStartFlexTemplateOperator from airflow, I am facing error as
Failed to start the VM, launcher-xxxxx, used for launching because of status code: FAILED_PRECONDITION, reason: Error: Message: Constraint constraints/compute.vmExternalIpAccess violated for project 646962485257. Add instance projects/projectxx/zones/us-central1-a/instances/launcher-xxxx to the constraint to use external IP with it. HTTP Code: 412.
Here is the code template am using, please advise how to get rid of that error ?
Note : tried all these three parameters ('disable-public-ips':'True' , 'use_public_ips':'False', 'no_use_public_ips': 'True',) but no luck
@Taragolis Appreciate your advice here
Beta Was this translation helpful? Give feedback.
All reactions