Data Source: azurerm_key_vault_secret
Returns information about the specified Key Vault Secret.
Note: All arguments including the secret value will be stored in the raw state as plain-text. Read more about sensitive data in state.
Example Usage
data "azurerm_key_vault_secret" "test" { name = "secret-sauce" vault_uri = "https://rickslab.vault.azure.net/" } 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. -
vault_uri
- (Required) Specifies the URI used to access the Key Vault instance, available on theazurerm_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.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/key_vault_secret.html