diff --git a/README.md b/README.md index 1c0b455..1a820ac 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ module "Kv-DemoVault" { #KeyVaultEnabledforDiskEncrypt = "true" #Optional. Default is set to "true" #KeyVaultEnabledforTempDeploy = "true" #Optional. Default is set to "true" OwnerTag = "Nate" #Optional. But I suggest you change it though :) - ProvisioningDateTag = timestamp() #This Tag is configured to NOT be updated unless resource is destroyed + UsageTag = "Demo" #Optional. Default value is "PoC Usage Only" ProvisioningModeTag = "Terraform" } ``` diff --git a/main.tf b/main.tf index 6715198..af6927c 100644 --- a/main.tf +++ b/main.tf @@ -27,8 +27,9 @@ resource "azurerm_key_vault" "TerraKeyVault" { #Tags tags = { Environment = var.EnvironmentTag + Usage = var.UsageTag Owner = var.OwnerTag - ProvisioningDate = var.ProvisioningDateTag + ProvisioningDate = timestamp() ProvisioningMode = var.ProvisioningModeTag } diff --git a/variables.tf b/variables.tf index 4c8b9f8..c16a38a 100644 --- a/variables.tf +++ b/variables.tf @@ -46,14 +46,14 @@ variable "EnvironmentTag" { type = string default = "Test" } - -variable "OwnerTag" { +variable "UsageTag" { type = string - default = "Nate" + default = "PoC usage only" } -variable "ProvisioningDateTag" { +variable "OwnerTag" { type = string + default = "Nate" } variable "ProvisioningModeTag" {