https://github.com/blackbird-cloud/terraform-azurerm-redis-cache
Terraform module to create an Azure Redis Cache
https://github.com/blackbird-cloud/terraform-azurerm-redis-cache
azure redis terraform
Last synced: about 1 month ago
JSON representation
Terraform module to create an Azure Redis Cache
- Host: GitHub
- URL: https://github.com/blackbird-cloud/terraform-azurerm-redis-cache
- Owner: blackbird-cloud
- License: apache-2.0
- Created: 2024-04-11T09:58:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T15:29:27.000Z (over 1 year ago)
- Last Synced: 2026-03-01T17:36:27.859Z (3 months ago)
- Topics: azure, redis, terraform
- Language: HCL
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Azurerm Redis Cache Module
Terraform module to create an Azure Redis Cache
[](https://blackbird.cloud)
## Example
```hcl
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](#requirement\_terraform) | >= 1.2 |
| [azurerm](#requirement\_azurerm) | ~> 3 |
## Providers
| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | ~> 3 |
## Resources
| Name | Type |
|------|------|
| [azurerm_redis_cache.default](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/redis_cache) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [capacity](#input\_capacity) | The size of the Redis instance | `number` | n/a | yes |
| [family](#input\_family) | The family of the Redis instance | `string` | n/a | yes |
| [public\_network\_access\_enabled](#input\_public\_network\_access\_enabled) | Whether or not public network access is enabled for the Redis instance | `bool` | `true` | no |
| [redis\_configuration](#input\_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](#input\_redis\_name) | The name of the Redis instance | `string` | n/a | yes |
| [resource\_group\_location](#input\_resource\_group\_location) | The location of the resource group | `string` | n/a | yes |
| [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group | `string` | n/a | yes |
| [sku\_name](#input\_sku\_name) | The SKU name of the Redis instance | `string` | n/a | yes |
| [subnet\_id](#input\_subnet\_id) | The ID of the subnet to place the Redis instance in | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [redis\_cache\_host\_name](#output\_redis\_cache\_host\_name) | The host name of the Redis Cache |
| [redis\_cache\_id](#output\_redis\_cache\_id) | The ID of the Redis Cache |
| [redis\_cache\_name](#output\_redis\_cache\_name) | The name of the Redis Cache |
| [redis\_cache\_port](#output\_redis\_cache\_port) | The port of the Redis Cache |
| [redis\_cache\_primary\_access\_key](#output\_redis\_cache\_primary\_access\_key) | The primary access key of the Redis Cache |
| [redis\_cache\_primary\_connection\_string](#output\_redis\_cache\_primary\_connection\_string) | The primary connection string of the Redis Cache |
| [redis\_cache\_secondary\_access\_key](#output\_redis\_cache\_secondary\_access\_key) | The secondary access key of the Redis Cache |
| [redis\_cache\_secondary\_connection\_string](#output\_redis\_cache\_secondary\_connection\_string) | The secondary connection string of the Redis Cache |
| [redis\_cache\_ssl\_port](#output\_redis\_cache\_ssl\_port) | The SSL port of the Redis Cache |
| [redis\_configuration](#output\_redis\_configuration) | The Redis configuration of the Redis Cache |
## About
We are [Blackbird Cloud](https://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 :point\_right: [terraform modules](https://registry.terraform.io/namespaces/blackbird-cloud)
## Copyright
Copyright © 2017-2024 [Blackbird Cloud](https://blackbird.cloud)