Skip to content

Commit

Permalink
fix: Tags were missing on redis
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpanzella committed Dec 18, 2024
1 parent 4f55f08 commit 0658524
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 2 additions & 0 deletions modules/redis/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ resource "azurerm_redis_cache" "default" {

enable_non_ssl_port = true

tags = var.tags

redis_configuration {
}

Expand Down
6 changes: 6 additions & 0 deletions modules/redis/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0658524

Please sign in to comment.