✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Your manager has instructed you to start using terraform for the entire infra provisioning of the application stack. There are 4 environments DEV , QA , UAT , and PROD. The application team has asked for complete segregation between these environments including the backend , state , and also configurations ,since there will be unique resources in different environments . What is the possible way to structure the terraform code to facilitate that.