From e9f084443d1ba7bb109b1796dee9c4aa4ef9885b Mon Sep 17 00:00:00 2001 From: Vezpi Date: Wed, 28 May 2025 07:40:41 +0000 Subject: [PATCH] fix: add lifecycle section for idempotency --- terraform/projects/simple-vm/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/projects/simple-vm/main.tf b/terraform/projects/simple-vm/main.tf index 95e09bf..06b02ef 100644 --- a/terraform/projects/simple-vm/main.tf +++ b/terraform/projects/simple-vm/main.tf @@ -94,6 +94,12 @@ resource "proxmox_virtual_environment_vm" "vm" { vga { type = "std" # Standard VGA type } + + lifecycle { + ignore_changes = [ # Ignore initialization section after first depoloyment for idempotency + initialization + ] + } } # Output the assigned IP address of the VM after provisioning