Google Runtime Configurator Variable

This page shows how to write Terraform for Runtime Configurator Variable and write them securely.

google_runtimeconfig_variable (Terraform)

The Variable in Runtime Configurator can be configured in Terraform with the resource name google_runtimeconfig_variable. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

runtime_config.tf#L8
resource "google_runtimeconfig_variable" "accept_new_syncs" {
  parent = google_runtimeconfig_config.runtime_config.name
  name   = "accept_new_syncs"
  text   = var.accept_new_syncs

  lifecycle {
main.tf#L7
resource "google_runtimeconfig_variable" "this" {
  name    = var.name
  parent  = var.parent
  project = var.project
  text    = var.text
  value   = var.value

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

  • id optional computed - string
  • name required - string

The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. "prod-variables/hostname").

The name of the RuntimeConfig resource containing this variable.

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".

Explanation in Terraform Registry

Manages a RuntimeConfig variable in Google Cloud. For more information, see the official documentation, or the JSON API.

Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.

Frequently asked questions

What is Google Runtime Configurator Variable?

Google Runtime Configurator Variable is a resource for Runtime Configurator of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Runtime Configurator Variable?

For Terraform, the sbogomolov/xbrowsersync-gcf-terraform and niveklabs/google source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.