From e74dcdb8a17afb6c2b7fa5a36b304ffc16a5591f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 12 Aug 2025 19:34:47 -0700 Subject: add a script to apply DNS terraform --- infra/tf/scripts.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infra/tf/scripts.nix b/infra/tf/scripts.nix index 373b77d..8e20d30 100644 --- a/infra/tf/scripts.nix +++ b/infra/tf/scripts.nix @@ -35,6 +35,13 @@ in ${pkgs.opentofu}/bin/tofu -chdir="cloudflare-dns" plan '') + (pkgs.writeShellScriptBin "tf-apply-dns" '' + set -xeuo pipefail + ${tofuSetup} + tofu_setup + ${pkgs.opentofu}/bin/tofu -chdir="cloudflare-dns" apply -auto-approve + '') + (pkgs.writeShellScriptBin "tf-plan-backups" '' set -xeuo pipefail ${tofuSetup} -- cgit v1.2.3