Skip to content

Commit

Permalink
update keyvault module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisvandermeulen committed Dec 12, 2024
1 parent 3b37819 commit 6744658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "azurerm_resource_group" "this" {
}

module "keyvault_with_cmk" {
source = "github.com/schubergphilis/terraform-azure-mcaf-key-vault.git?ref=v0.2.2"
source = "github.com/schubergphilis/terraform-azure-mcaf-key-vault.git?ref=v0.3.1"

key_vault = {
name = var.key_vault.name
Expand All @@ -32,6 +32,9 @@ module "keyvault_with_cmk" {
subnet_ids = length(var.key_vault.subnet_ids) == 0 ? null : var.key_vault.subnet_ids
network_bypass = "AzureServices"
cmk_keys_create = true
cmk_rotation_period = var.key_vault.cmk_rotation_period
cmk_expiry_period = var.key_vault.cmk_expiry_period
cmk_notify_period = var.key_vault.cmk_notify_period
cmkrsa_key_name = var.key_vault.cmkrsa_key_name
cmkec_key_name = var.key_vault.cmkec_key_name
}
Expand Down
4 changes: 3 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ variable "key_vault" {
cmk_keys_create = optional(bool, true)
cmkrsa_key_name = optional(string, "cmkrsa")
cmkec_key_name = optional(string, "cmkec")
cmk_rotation_period = optional(string, "P90D")
cmk_rotation_period = optional(string, "P18M")
cmk_expiry_period = optional(string, "P2Y")
cmk_notify_period = optional(string, "P30D")
})
}

Expand Down

0 comments on commit 6744658

Please sign in to comment.