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
resource "google_runtimeconfig_variable" "accept_new_syncs" {
parent = google_runtimeconfig_config.runtime_config.name
name = "accept_new_syncs"
text = var.accept_new_syncs
lifecycle {
resource "google_runtimeconfig_variable" "this" {
name = var.name
parent = var.parent
project = var.project
text = var.text
value = var.value
Parameters
The name of the variable to manage. Note that variable names can be hierarchical using slashes (e.g. "prod-variables/hostname").
-
parent
required - string
The name of the RuntimeConfig resource containing this variable.
-
project
optional computed - string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
text
optional - string -
update_time
optional computed - string
The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
-
value
optional - string
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.