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