fix: ignore ami and user_data changes to prevent EC2 replacement

This commit is contained in:
ikechukwu Elizabeth
2026-05-21 07:31:19 +01:00
parent d68fa9398e
commit 284f1e44e8
+5 -1
View File
@@ -98,4 +98,8 @@ resource "aws_instance" "app" {
Project = var.project_name
Environment = var.environment
}
}
lifecycle {
ignore_changes = [ami, user_data]
}
}