From 06585246884fba647f8b363530ab0d329b94bbaa Mon Sep 17 00:00:00 2001 From: Daniel Panzella Date: Tue, 17 Dec 2024 16:58:24 -0800 Subject: [PATCH] fix: Tags were missing on redis --- main.tf | 2 ++ modules/redis/main.tf | 2 ++ modules/redis/variables.tf | 6 ++++++ 3 files changed, 10 insertions(+) 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"