##Key Vault Key
module "key_vault_key" {
source = "sironite/key-vault-key/azurerm"
version = "X.Y.Z"
key_name = "my-key"
key_vault_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.KeyVault/vaults/my-key-vault"
key_type = "RSA"
key_size = 2048
key_opts = [
"decrypt",
"encrypt",
"sign",
"unwrapKey",
"verify",
"wrapKey",
]
enable_rotation_policy = true
enable_automatic_rotation = true
time_after_creation = "P90D"
time_before_expiry = "P30D"
}
Name | Version |
---|---|
azurerm | >= 2.0.0 |
No modules.
Name | Type |
---|---|
azurerm_key_vault_key.this | resource |
Name | Description | Type | Required |
---|---|---|---|
key_name | The name of the key to create in the key vault | string |
yes |
key_opts | The options to use when creating the key in the key vault | list(string) |
yes |
key_size | The size of the key to create in the key vault | number |
yes |
key_type | The type of key to create in the key vault | string |
yes |
key_vault_id | The ID of the key vault to create the key in | string |
yes |
not_before_date | The not before date of the key | string |
yes |
enable_automatic_rotation | Whether to enable automatic rotation for the key | bool |
no |
enable_rotation_policy | Whether to enable rotation policy for the key | bool |
no |
expiration_date | The expiration date of the key | string |
no |
expire_after | The duration after which the key should expire | string |
no |
notify_before_expiry | The duration before expiry to notify | string |
no |
time_after_creation | The duration after creation to rotate the key | string |
no |
time_before_expiry | The duration before expiry to rotate the key | string |
no |
Name | Description |
---|---|
key_id | The ID of the key in the Azure Key Vault. |
key_name | The name of the key in the Azure Key Vault. |
key_opts | The options of the key in the Azure Key Vault. |
key_size | The size of the key in the Azure Key Vault. |
key_type | The type of the key in the Azure Key Vault. |
key_version | The version of the key in the Azure Key Vault. |
rotation_policy | The rotation policy of the key in the Azure Key Vault. |