Terraform interview question

How do you use Terraform to deploy the same infrastructure to nonprod and production AWS accounts?

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

Use a single set of modules with environment-specific root configurations. Each root sets its own backend, provider with assume_role into the target account, and a .tfvars file or variable defaults that differ per environment (instance sizes, replica counts, Multi-AZ).

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