Замена ресурса (современный taint) terraform
Принудительный destroy+recreate одного ресурса; заменяет устаревший terraform taint
terraform apply -replace='aws_instance.web'
more terraform
all 43 commands →
Точечный targeted plan
terraform plan -target='module.db.aws_db_instance.main'
Refresh-only план (детект дрейфа)
terraform plan -refresh-only
Миграция backend при init
terraform init -migrate-state -backend-config=backend.hcl
Запрос outputs через jq
terraform output -json | jq -r '.endpoints.value[]'
Трассировка плана через TF_LOG
TF_LOG=DEBUG TF_LOG_PATH=tf.log terraform plan