Skip to content

blackbird-cloud/terraform-azurerm-redis-cache

Repository files navigation

Terraform Azurerm Redis Cache Module

Terraform module to create an Azure Redis Cache

blackbird-logo

Example

module "azurerm_redis_cache" {
  source  = "blackbird-cloud/redis-cache/azurerm"
  version = "~> 1"

  resource_group_name     = "shared-tools"
  resource_group_location = "westeurope"

  redis_name = "example-redis"

  sku_name = "Basic"
  family   = "C"
  capacity = 1

  redis_configuration = {

  }

  public_network_access_enabled = false
  subnet_id                     = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/shared-tools/providers/Microsoft.Network/virtualNetworks/vnet/subnets/default"
}

Requirements

Name Version
terraform >= 1.2
azurerm ~> 3

Providers

Name Version
azurerm ~> 3

Resources

Name Type
azurerm_redis_cache.default resource

Inputs

Name Description Type Default Required
capacity The size of the Redis instance number n/a yes
family The family of the Redis instance string n/a yes
public_network_access_enabled Whether or not public network access is enabled for the Redis instance bool true no
redis_configuration A map of Redis configuration settings
object({
aof_backup_enabled = optional(bool, false)
aof_storage_connection_string_0 = optional(string, null)
aof_storage_connection_string_1 = optional(string, null)
enable_authentication = optional(bool, true)
active_directory_authentication_enabled = optional(bool, false)
maxmemory_reserved = optional(string, null)
maxmemory_delta = optional(string, null)
maxmemory_policy = optional(string, null)
maxfragmentation_memory_reserved = optional(string, null)
data_persistence_authentication_method = optional(string, null)
rdb_backup_enabled = optional(bool, false)
rdb_backup_frequency = optional(string, null)
rdb_backup_max_snapshot_count = optional(number, null)
rdb_storage_connection_string = optional(string, null)
storage_account_subscription_id = optional(string, null)
})
n/a yes
redis_name The name of the Redis instance string n/a yes
resource_group_location The location of the resource group string n/a yes
resource_group_name The name of the resource group string n/a yes
sku_name The SKU name of the Redis instance string n/a yes
subnet_id The ID of the subnet to place the Redis instance in string n/a yes

Outputs

Name Description
redis_cache_host_name The host name of the Redis Cache
redis_cache_id The ID of the Redis Cache
redis_cache_name The name of the Redis Cache
redis_cache_port The port of the Redis Cache
redis_cache_primary_access_key The primary access key of the Redis Cache
redis_cache_primary_connection_string The primary connection string of the Redis Cache
redis_cache_secondary_access_key The secondary access key of the Redis Cache
redis_cache_secondary_connection_string The secondary connection string of the Redis Cache
redis_cache_ssl_port The SSL port of the Redis Cache
redis_configuration The Redis configuration of the Redis Cache

About

We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.

Checkout our other 👉 terraform modules

Copyright

Copyright © 2017-2024 Blackbird Cloud

About

Terraform module to create an Azure Redis Cache

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages