Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
update tags - Nate
Browse files Browse the repository at this point in the history
  • Loading branch information
nate committed Feb 10, 2021
1 parent d43a62c commit f59e146
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit f59e146

Please sign in to comment.