aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-12 19:34:47 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-12 19:34:47 -0700
commite74dcdb8a17afb6c2b7fa5a36b304ffc16a5591f (patch)
treee14042429ddccbdf615966ad06caa354ee89445e
parentfix script to update do-rproxy (diff)
downloadinfra-e74dcdb8a17afb6c2b7fa5a36b304ffc16a5591f.tar.gz
add a script to apply DNS terraform
-rw-r--r--infra/tf/scripts.nix7
1 files changed, 7 insertions, 0 deletions
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}