Get a VPN gateway within GCE from its name.
data "google_compute_vpn_gateway" "my-vpn-gateway" {
name = "vpn-gateway-us-east1"
}
The following arguments are supported:
name - (Required) The name of the VPN gateway. project - (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
region - (Optional) The region in which the resource belongs. If it is not provided, the project region is used.
In addition to the arguments listed above, the following attributes are exported:
network - The network of this VPN gateway.
description - Description of this VPN gateway.
region - Region of this VPN gateway.
self_link - The URI of the resource.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/google/d/datasource_compute_vpn_gateway.html