Reputation: 189
I am running dataflow job using python code.
I want my dataflow workers to have only private ips to it, external ips should not be assigned.
The reason for this is, i am accessing mongodb atlas from dataflow and its only accessible from private ips (because vpc peering is done).
I tried many command line options while launching job:
--disable-public-ips , --no_use_public_ips , --usePublicIps=false
but no success. How can i achieve that?
Upvotes: 0
Views: 1617
Reputation: 189
Solved this issue !!
The problem was, i had specified network, subnetwork parameters inside my code.
As per dataflow document one of those two values should be specified. So i commented network value and issue solved
Upvotes: 2