diff --git a/README.md b/README.md index b8bae07..ff4bf2e 100644 --- a/README.md +++ b/README.md @@ -72,12 +72,20 @@ The following input variables are optional (have default values): ### delete\_retention\_policy -Description: days until soft deleted resources are hard deleted +Description: Days until soft deleted resources are hard deleted Type: `number` Default: `7` +### tags + +Description: Map of tags for the resources + +Type: `map(any)` + +Default: `{}` + ## Outputs No outputs. diff --git a/main.tf b/main.tf index e0f6cd1..c2b3311 100644 --- a/main.tf +++ b/main.tf @@ -8,6 +8,7 @@ resource "azurerm_storage_account" "storage-account" { enable_https_traffic_only = true allow_blob_public_access = false min_tls_version = "TLS1_2" + tags = var.tags blob_properties { delete_retention_policy { diff --git a/vars.tf b/vars.tf index 470045f..c6e88f8 100644 --- a/vars.tf +++ b/vars.tf @@ -13,6 +13,12 @@ variable "location" { description = "The azure location used for azure" } +variable "tags" { + type = map(any) + description = "Map of tags for the resources" + default = {} +} + variable "resource_group" { type = string description = "Name of the resource group to use"