maganap
maganap

Reputation: 2904

(GCP/GCE) Update gcloud SDK to use VPN tools

I've been using GCE and gcloud for a few weeks now. A new set of VPN tools were released in alpha last Dec. 3rd (https://cloud.google.com/compute/docs/vpn), and I need to start testing with them.

The problem is that gcloud doesn't seem to recognise this new set of tools, and I get errors like:

$ gcloud compute target-vpn-gateways create --region us-central1 --network default vpn1
ERROR: (gcloud.compute) Invalid choice: 'target-vpn-gateways'.
$ gcloud compute vpn-tunnels describe
ERROR: (gcloud.compute) Invalid choice: 'vpn-tunnels'

target-vpn-gateways and vpn-tunnels are just not part of the command groups.

So, I though of updating the core and compute components, but they're all up to date. This seems so new that there's no information at this time in Google Cloud documentation about updating the SDK to be able to use these VPN tools.

Any ideas? I'm using OSX in case it matters.

Thanks a lot in advance!

EDIT:

As of March 2015, the documentation has been updated and it's now in beta stage:

https://cloud.google.com/compute/docs/vpn

So, to answer my own question according to this update, beta VPN functionality can be accessed by updating components this way:

$ gcloud components update beta

Upvotes: 0

Views: 678

Answers (3)

user3547151
user3547151

Reputation: 89

the updates i have been receiving is the beta launch is likely around end Feb 2015.

Upvotes: 0

user3547151
user3547151

Reputation: 89

It was announced in GCP Live that VPN will be available in Q1, 2015; that means Beta and GA is likely to happen between Jan- Mar.

Upvotes: 0

Jeffrey Vaughan
Jeffrey Vaughan

Reputation: 894

Sorry about the confusion here. Google Cloud Platform support is still in limited preview state. What this means is that the API calls only work for specially whitelisted projects and that the normal gcloud build doesn't yet include VPN support. (Because it would be potentially confusing if the gcloud command existed but would always fail do the API not being enabled yet.)

As I understand it your best bet for getting your project whitelisted is to go through the GCP sales office: https://cloud.google.com/contact/

I'm going to try to get the docs updated so that the situation is more clear.

Upvotes: 2

Related Questions