Вывести outputs terraform
Вывести все outputs в компактном JSON
terraform output -json | jq 'to_entries[] | {(.key): .value.value}'
more terraform
all 43 commands →
Уничтожить конкретный ресурс
terraform destroy -target='aws_instance.web' -auto-approve
Разблокировать state
terraform force-unlock <lock-id>
Создать и переключить workspace
terraform workspace new staging && terraform workspace select staging
Граф зависимостей
terraform graph | dot -Tsvg > graph.svg && open graph.svg
Список провайдеров с версиями
terraform providers lock -platform=linux_amd64 -platform=darwin_arm64