Name | Version |
---|---|
terraform | >= 1.6.4 |
azurerm | 4.0.1 |
Name | Version |
---|---|
azurerm | 4.0.1 |
Name | Type |
---|---|
azurerm_redis_cache.main | resource |
azurerm_client_config.current | data source |
azurerm_resource_group.rg | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
default_tags | A mapping of tags to assign to the resource. | map(any) |
n/a | yes |
environment | The environment name (e.g., dev, prod) used for resource naming. | string |
"dev" |
no |
redis_cache_capacity | The size of the Redis cache to deploy. Valid values for a SKU family of C (Basic/Standard) are 0, 1, 2, 3, 4, 5, 6, and for P (Premium) family are 1, 2, 3, 4. | string |
"2" |
no |
redis_cache_enable_non_ssl_port | Whether to enable the non-SSL port (6379). Disabled by default. | string |
"false" |
no |
redis_cache_family | The SKU family/pricing group to use. Valid values are C (for Basic/Standard SKU family) and P (for Premium). | string |
"C" |
no |
redis_cache_maxmemory_delta | The max-memory delta for the Redis instance in megabytes. | string |
"2" |
no |
redis_cache_maxmemory_policy | The policy that Redis will use to select items to remove when maxmemory is reached. Default is 'allkeys-lru'. | string |
"allkeys-lru" |
no |
redis_cache_maxmemory_reserved | The value in megabytes reserved for non-cache usage (e.g., for failover). | string |
"10" |
no |
redis_cache_minimum_tls_version | The minimum TLS version to support. Defaults to 1.2. | string |
"1.2" |
no |
redis_cache_name | The name of the Redis instance. Changing this forces a new resource to be created. | string |
n/a | yes |
redis_cache_tier | The SKU tier of Redis to use. Possible values are Basic, Standard, and Premium. | string |
"Standard" |
no |
region | The Azure region where the resources will be deployed. | string |
"weu" |
no |
resource_group_location | Specifies the supported Azure location where the resource group exists. Changing this forces a new resource to be created. | string |
"West Europe" |
no |
resource_group_name | The name of the resource group in which to create the Redis instance. Changing this forces a new resource to be created. | string |
n/a | yes |
Name | Description |
---|---|
hostname | The Hostname of the Redis Instance |
id | The Route ID. |
redis_cache_port | The non-SSL Port of the Redis Instance |
redis_cache_primary_access_key | The Primary Access Key for the Redis Instance |
redis_cache_primary_connection_string | The primary connection string of the Redis Instance. |
redis_cache_secondary_access_key | The Secondary Access Key for the Redis Instance |
redis_cache_secondary_connection_string | The secondary connection string of the Redis Instance. |
redis_cache_ssl_port | The SSL Port of the Redis Instance |