Skip to content
Navigation Menu

IBM Cloud

  • CatalogCatalog
  • Cost EstimatorCost Estimator
    • HelpHelp
      • Docs
  • Log in
  • Sign up
  • Catalog
  • Cost Estimator
  • Help
    • Docs

  • Navigation settings

Error

Change theme

This feature is in early stage, some parts of the platform might not fully support different themes yet.

Themes
  1. Catalog

IBM Cloud Databases for Redis module

Implements an instance of IBM Cloud Databases for Redis.

  • Date of last update: 05/26/2025
  • Docs
  • Readme file
warning icon
This product is deprecated
IBM Cloud Databases for Redis module will not be available after 08/24/2025. You can install the product until then.

Module overview

Use this module to provision and configure an instance of IBM Cloud Databases for Redis.

Usage

provider "ibm" {
  ibmcloud_api_key = "XXXXXXXXXX"
  region           = "us-south"
}

module "redis" {
  # Replace X.X.X with a release version to lock into a specific release
  source            = "https://cm.globalcatalog.cloud.ibm.com/api/v1-beta/offering/source?archive=tgz&kind=terraform&name=terraform-ibm-icd-redis&version=X.X.X"
  resource_group_id = "xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX"
  region            = "us-south"
  instance_name     = "my-redis-instance"
}

Features and capabilities

Create instance of Databases for Redis

Creates an instance of IBM Cloud Databases for Redis.

Managing users and roles

Manage IAM service credentials as well as Databases for Redis admin and default user credentials and roles.

Autoscaling instance

Supports rules that allow the Cloud Databases instance to increase resources in response to usage.

Create service credentials roles

Create service credentials roles for the instance of Databases for Redis.

Configure Databases for Redis instance

Configure Databases for Redis settings to tune database based on the use-case.

Scaling disk, memory, and CPU

Adjust the Cloud Databases resources to suit workloads and other needs.

KMS encryption

Supports key management encryption (BYOK and KYOK), including service-to-service authorization policies with KMS.

Supports backup restoration

Provides database restoration using a backup created by a deployment with the same service ID.

CBR

Create context-based restriction (CBR) rules for both Databases for Redis instance.

    Version last updated: 01/17/2025
    Example

      Details

      • Docs
      • Content source 

      Details

      Type
      • Terraform
      Provider
      • IBM
      Category
      • Developer tools
      Last updated
      • 05/26/2025
      Product version
      • v1.16.1
      Example
      • Advanced
      Copy
      Copy
      Copy
      Copy
      Copy
      Copy

      Current weekly downloads

      Count: 0

      Advanced example

      This example creates an IBM Cloud Database for Redis instance with KMS encryption enabled and CBR rules configured.

      The following resources are provisioned by this example:

      • A new resource group, if an existing one is not passed in.
      • A basic VPC and subnet.
      • A Key Protect instance with a root key in the given resource group and region.
      • An instance of Databases for Redis with KMS encryption enabled.
      • Service credentials for the database instance.
      • A context-based restriction (CBR) rule to only allow Redis to be accessible from within the VPC.

      Advanced Example

      Focus sentinel
      Close

      Advanced Example

      Focus sentinel

      This example creates an IBM Cloud Database for Redis instance with KMS encryption enabled and CBR rules configured.

      Follow these steps to download the code and configure it. Then, run the example on your local machine. Learn more.
      1. Download the source file for this example, and then extract the .tar.gz file.
      2. Change to the extracted
        Copy to clipboard
        directory.
      3. If any module in the example comes from a private catalog, run the
        Copy to clipboard
        CLI command as a user who has account access to the private catalog.
      4. Run the following Terraform commands in the same terminal instance.
        $ terraform init
        Copy to clipboard
        $ terraform plan
        Copy to clipboard
        $ terraform apply
        Copy to clipboard