From f19ba2f4b6f573b28f74e9746a448673975cd960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 7 Feb 2026 15:41:59 +0100 Subject: [PATCH] CLAUDE.md: use tofu -chdir instead of cd Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index c5a6912..c2432a0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -76,6 +76,16 @@ nix develop -c tofu plan tofu plan ``` +**OpenTofu:** Use the `-chdir` option instead of `cd` when running tofu commands in subdirectories: +```bash +# Good - uses -chdir option +nix develop -c tofu -chdir=terraform plan +nix develop -c tofu -chdir=terraform/vault apply + +# Avoid - changing directories +cd terraform && tofu plan +``` + ### Secrets Management Secrets are managed by OpenBao (Vault) using AppRole authentication. Most hosts use the