» Data Source: azurerm_key_vault

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

» Example Usage

data "azurerm_key_vault" "example" {
  name                = "mykeyvault"
  resource_group_name = "some-resource-group"
}

output "vault_uri" {
  value = data.azurerm_key_vault.example.vault_uri
}

» Argument Reference

The following arguments are supported:

  • name - Specifies the name of the Key Vault.

  • resource_group_name - The name of the Resource Group in which the Key Vault exists.

» Attributes Reference

The following attributes are exported:

A access_policy block supports the following:

  • tenant_id - The Azure Active Directory Tenant ID used to authenticate requests for this Key Vault.

  • object_id - An Object ID of a User, Service Principal or Security Group.

  • application_id - The Object ID of a Azure Active Directory Application.

  • certificate_permissions - A list of certificate permissions applicable to this Access Policy.

  • key_permissions - A list of key permissions applicable to this Access Policy.

  • secret_permissions - A list of secret permissions applicable to this Access Policy.

  • storage_permissions - A list of storage permissions applicable to this Access Policy.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Key Vault.