Skip to content

Latest commit

 

History

History
106 lines (81 loc) · 2.06 KB

File metadata and controls

106 lines (81 loc) · 2.06 KB

google_runtimeconfig_variable

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

variable "name" {
  description = "(required) - The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. \"prod-variables/hostname\")."
  type        = string
}

variable "parent" {
  description = "(required) - The name of the RuntimeConfig resource containing this variable."
  type        = string
}

variable "project" {
  description = "(optional) - The ID of the project in which the resource belongs. If it is not provided, the provider project is used."
  type        = string
  default     = null
}

top

Datasource

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

top

Outputs

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

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

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

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

output "this" {
  value = google_runtimeconfig_variable.this
}

top