[
https://issues.apache.org/jira/browse/BEAM-8472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084359#comment-17084359
]
Kyle Weaver commented on BEAM-8472:
-----------------------------------
> Dataflow doesn't currently support the Go SDK so this won't be prioritized
> above current work any time soon.
Understood.
> Just to be clear, the protocol is to check the environment variables, and
> then execute the gcloud command?
Yes, that's correct. For reference (helpful for testing):
https://cloud.google.com/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client
> Get default GCP region from gcloud
> ----------------------------------
>
> Key: BEAM-8472
> URL: https://issues.apache.org/jira/browse/BEAM-8472
> Project: Beam
> Issue Type: Improvement
> Components: runner-dataflow, sdk-go
> Reporter: Kyle Weaver
> Priority: Major
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> Currently, we default to us-central1 if --region flag is not set. The Google
> Cloud SDK generally tries to get a default value in this case for
> convenience, which we should follow.
> [https://cloud.google.com/compute/docs/gcloud-compute/#order_of_precedence_for_default_properties]
> Update 11/12: this is complete for Python and Java, Go remains.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)