Skip to content

Data Source: azurermRedisEnterpriseDatabase

Use this data source to access information about an existing Redis Enterprise Database

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 azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermRedisEnterpriseDatabaseExample =
  new azurerm.dataAzurermRedisEnterpriseDatabase.DataAzurermRedisEnterpriseDatabase(
    this,
    "example",
    {
      cluster_id: "${azurerm_redis_enterprise_cluster.example.id}",
      name: "default",
      resource_group_name: "${azurerm_resource_group.example.name}",
    }
  );
new cdktf.TerraformOutput(this, "redis_enterprise_database_primary_key", {
  value: dataAzurermRedisEnterpriseDatabaseExample.primaryAccessKey,
  description: "The Redis Enterprise DB primary key.",
});
new cdktf.TerraformOutput(this, "redis_enterprise_database_secondary_key", {
  value: dataAzurermRedisEnterpriseDatabaseExample.secondaryAccessKey,
  description: "The Redis Enterprise DB secondary key.",
});

Argument Reference

  • name - The name of the Redis Enterprise Database.

  • resourceGroupName - The name of the resource group the Redis Enterprise Database instance is located in.

  • clusterId - The resource ID of Redis Enterprise Cluster which hosts the Redis Enterprise Database instance.

Attributes Reference

  • id - The Redis Enterprise Database ID.

  • name - The Redis Enterprise Database name.

  • clusterId - The Redis Enterprise Cluster ID that is hosting the Redis Enterprise Database.

  • linkedDatabaseId - The Linked Database list for the Redis Enterprise Database instance.

  • linkedDatabaseGroupNickname - The Linked Database Group Nickname for the Redis Enterprise Database instance.

  • primaryAccessKey - The Primary Access Key for the Redis Enterprise Database instance.

  • secondaryAccessKey - The Secondary Access Key for the Redis Enterprise Database instance.


Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Redis Enterprise Database.