Skip to content

Latest commit

 

History

History
115 lines (88 loc) · 1.83 KB

File metadata and controls

115 lines (88 loc) · 1.83 KB

google_firebase_project

back

Index

Terraform

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

top

Example Usage

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

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

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

top

Variables

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

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

top

Resource

resource "google_firebase_project" "this" {
  # project - (optional) 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 "display_name" {
  description = "returns a string"
  value       = google_firebase_project.this.display_name
}

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

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

output "project_number" {
  description = "returns a string"
  value       = google_firebase_project.this.project_number
}

output "this" {
  value = google_firebase_project.this
}

top