Skip to content

googleRuntimeconfigConfig

Manages a RuntimeConfig resource in Google Cloud.

To get more information about RuntimeConfigs, see:

\~> 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.

Example Usage

Example creating a RuntimeConfig resource.

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.runtimeconfigConfig.RuntimeconfigConfig(this, "my-runtime-config", {
  description: "Runtime configuration values for my service",
  name: "my-service-runtime-config",
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the runtime config.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

  • description - (Optional) The description to associate with the runtime config.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/configs/{{name}}

Import

Runtime Configs can be imported using the name or full config name, e.g.

$ terraform import google_runtimeconfig_config.myconfig myconfig
$ terraform import google_runtimeconfig_config.myconfig projects/my-gcp-project/configs/myconfig

When importing using only the name, the provider project must be set.