Terraform interview question

How do you bootstrap an S3 remote state backend for Terraform without a chicken-and-egg problem?

How you'd do it 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

Create the S3 bucket and (optionally) a DynamoDB table with Terraform using a local backend first, then migrate the state into the bucket with terraform init -migrate-state. In Terraform 1.10+ the native use_lockfile = true setting replaces DynamoDB for locking.

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