Skip to content

Commit

Permalink
fix: created variable for key expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudlovely committed Nov 22, 2023
1 parent adb2e2f commit 0388bd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "azurerm_key_vault_key" "kvkey" {
depends_on = [azurerm_role_assignment.identity_assigned]
count = var.enabled && var.default_enabled == false ? 1 : 0
name = format("storage-%s-cmk-key", module.labels.id)
expiration_date = "2023-12-31T18:29:59Z"
expiration_date = var.expiration_date
key_vault_id = var.key_vault_id
key_type = "RSA"
key_size = 2048
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ variable "key_vault_id" {
default = null
}

variable "expiration_date" {
type = string
default = "2023-12-31T18:29:59Z"
description = "Expiration UTC datetime (Y-m-d'T'H:M:S'Z')"
}

variable "shared_access_key_enabled" {
type = bool
default = true
Expand Down

0 comments on commit 0388bd4

Please sign in to comment.