Skip to content

Instantly share code, notes, and snippets.

@wkharold
Created April 3, 2016 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wkharold/5a9779e4cbd3ec1b81d191f2f912af22 to your computer and use it in GitHub Desktop.
Save wkharold/5a9779e4cbd3ec1b81d191f2f912af22 to your computer and use it in GitHub Desktop.
deployment manager vpn tunnel creation template
resources:
- name: {{ env["name"] }}
type: compute.v1.vpnTunnel
properties:
peerIp: {{ properties["peerip"] }}
region: {{ properties["region"] }}
sharedSecret: {{ properties["secret"] }}
targetVpnGateway: $(ref.{{ properties["target"] }}.selfLink)
- name: {{ env["name"] }}-route-1
type: compute.v1.route
properties:
destRange: {{ properties["destcidr"] }}
nextHopVpnTunnel: $(ref.{{ env["name"] }}.selfLink)
network: {{ properties["network"] }}
priority: 1000
tags:
- qa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment