Skip to content

Latest commit

 

History

History
117 lines (90 loc) · 2 KB

File metadata and controls

117 lines (90 loc) · 2 KB

google_compute_vpn_gateway

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_compute_vpn_gateway" {
  source = "./modules/google-beta/d/google_compute_vpn_gateway"

  # name - (required) is a type of string
  name = null
  # project - (optional) is a type of string
  project = null
  # region - (optional) is a type of string
  region = null
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "project" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "region" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "google_compute_vpn_gateway" "this" {
  # name - (required) is a type of string
  name = var.name
  # project - (optional) is a type of string
  project = var.project
  # region - (optional) is a type of string
  region = var.region
}

top

Outputs

output "description" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.description
}

output "id" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.id
}

output "network" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.network
}

output "project" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.project
}

output "region" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.region
}

output "self_link" {
  description = "returns a string"
  value       = data.google_compute_vpn_gateway.this.self_link
}

output "this" {
  value = google_compute_vpn_gateway.this
}

top