Use this data source to access information about an existing Key Vault Secret.
data "azurestack_key_vault_secret" "example" {
name = "secret-sauce"
key_vault_id = data.azurestack_key_vault.existing.id
}
output "secret_value" {
value = data.azurestack_key_vault_secret.example.value
}
The following arguments are supported:
name
- Specifies the name of the Key Vault Secret.
key_vault_id
- Specifies the ID of the Key Vault instance where the Secret resides, available on the azurestack_key_vault
Data Source / Resource.
NOTE: The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
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.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Key Vault Secret.