From 9ad9dcc2c1ffc9fbd9b714dc211080de531d303f Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 15 Oct 2023 16:23:32 +0200 Subject: [PATCH] Attempt to make Terraform ignore `flake_{ref,sha}` changes Signed-off-by: magic_rb --- terranix/lib/nomad_job.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terranix/lib/nomad_job.nix b/terranix/lib/nomad_job.nix index 1b4773c..c85fe4f 100644 --- a/terranix/lib/nomad_job.nix +++ b/terranix/lib/nomad_job.nix @@ -9,4 +9,8 @@ enabled = true; inherit vars; }; + lifecycle.ignore_changes = [ + "hcl2[0].vars[\"flake_ref\"]" + "hcl2[0].vars[\"flake_sha\"]" + ]; } // builtins.removeAttrs args [ "jobspec" "vars" ]