diff --git a/main.tf b/main.tf index 861ba51..19ceb9d 100644 --- a/main.tf +++ b/main.tf @@ -63,6 +63,8 @@ module "redis" { location = azurerm_resource_group.default.location capacity = local.redis_capacity depends_on = [module.networking] + + tags = var.tags } module "vault" { diff --git a/modules/redis/main.tf b/modules/redis/main.tf index 9a7eafa..22e1f14 100644 --- a/modules/redis/main.tf +++ b/modules/redis/main.tf @@ -8,6 +8,8 @@ resource "azurerm_redis_cache" "default" { enable_non_ssl_port = true + tags = var.tags + redis_configuration { } diff --git a/modules/redis/variables.tf b/modules/redis/variables.tf index 87b374f..1372d56 100644 --- a/modules/redis/variables.tf +++ b/modules/redis/variables.tf @@ -19,6 +19,12 @@ variable "sku_name" { description = "Specifies the SKU Name for this Redis instance" } +variable "tags" { + default = {} + type = map(string) + description = "Map of tags for resource" +} + variable "family" { type = string default = "C"