Skip to content

Latest commit

 

History

History
99 lines (75 loc) · 1.62 KB

File metadata and controls

99 lines (75 loc) · 1.62 KB

google_compute_shared_vpc_host_project

back

Index

Terraform

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

top

Example Usage

module "google_compute_shared_vpc_host_project" {
  source = "./modules/google-beta/r/google_compute_shared_vpc_host_project"

  # project - (required) is a type of string
  project = null

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

variable "project" {
  description = "(required) - The ID of the project that will serve as a Shared VPC host project"
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
    }
  ))
  default = []
}

top

Resource

resource "google_compute_shared_vpc_host_project" "this" {
  # project - (required) is a type of string
  project = var.project

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
    }
  }

}

top

Outputs

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

output "this" {
  value = google_compute_shared_vpc_host_project.this
}

top