Skip to content

googleRedisInstance

Get info about a Google Cloud Redis instance.

Example Usage

import * as cdktf from "cdktf";
/*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.*/
const dataGoogleRedisInstanceMyInstance =
  new google.dataGoogleRedisInstance.DataGoogleRedisInstance(
    this,
    "my_instance",
    {
      name: "my-redis-instance",
    }
  );
new cdktf.TerraformOutput(this, "instance_authorized_network", {
  value: dataGoogleRedisInstanceMyInstance.authorizedNetwork,
});
new cdktf.TerraformOutput(this, "instance_connect_mode", {
  value: dataGoogleRedisInstanceMyInstance.connectMode,
});
new cdktf.TerraformOutput(this, "instance_memory_size_gb", {
  value: dataGoogleRedisInstanceMyInstance.memorySizeGb,
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of a Redis instance.

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

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

Attributes Reference

See google_redis_instance resource for details of the available attributes.