Terraform interview question

What happens if the CI runner crashes or loses connectivity during terraform apply?

Scenario Asked in DevOps Engineer · Cloud Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

The in-progress API call either completes or fails on the AWS side — Terraform has no way to cancel it. The state lock remains held until it expires or you force-unlock it. The state file may or may not reflect the last completed resource, depending on when the crash occurred.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Terraform questions

← All Terraform questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake