» Data Source: azurerm_key_vault_secret

Use this data source to access information about an existing Key Vault Secret.

» Example Usage

data "azurerm_key_vault_secret" "test" {
  name         = "secret-sauce"
  key_vault_id = "${data.azurerm_key_vault.existing.id}"
}

output "secret_value" {
  value = "${data.azurerm_key_vault_secret.test.value}"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Key Vault Secret.

  • key_vault_id - (Required) Specifies the ID of the Key Vault instance where the Secret resides, available on the azurerm_key_vault Data Source / Resource.

» Attributes Reference

The following attributes are exported:

  • id - The Key Vault Secret ID.
  • value - The value of the Key Vault Secret.
  • version - The current version of the Key Vault Secret.
  • content_type - The content type for the Key Vault Secret.
  • tags - Any tags assigned to this resource.