Skip to content

Commit

Permalink
update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
endakelly committed Oct 19, 2023
1 parent 57427b8 commit 093d2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ data "azurerm_key_vault_secret" "splunk_pass4symmkey" {
data "azurerm_key_vault_secret" "nessus_agent_key" {
count = var.install_nessus_agent ? 1 : 0
provider = azurerm.soc
name = var.nessus_key == "" ? "nessus-agent-key-${var.env}" : var.nessus_key
name = contains(["prod", "sbox"], var.env) ? "nessus-agent-key-${var.env}" : "nessus-agent-key-nonprod"
key_vault_id = data.azurerm_key_vault.soc_vault[0].id
}

0 comments on commit 093d2a5

Please sign in to comment.