Files
stolzor 64be99308b
terraform / check (push) Canceled after 0s
Initial commit
2026-10-11 20:30:21 +03:00

17 lines
458 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
#MISE description="Terraform с окружением из .env и config.yaml: mise run tf storage plan"
set -euo pipefail
[[ $# -ge 2 ]] || {
echo "использование: mise run tf <vault|storage|database> <команда terraform> [аргументы]" >&2
exit 1
}
dir=$1
shift
if [[ $1 == init ]]; then
shift
exec terraform -chdir="$dir" init -backend-config=../backend.hcl "$@"
fi
exec terraform -chdir="$dir" "$@"