Interview Prep/Real-World Interview/Infrastructure as Code & Terraform state

How did different Terraform stacks share information?

IntermediateBehavioralInfrastructure as Code & Terraform state
Answer

Good answer looks like → "The EKS stack needed VPC and subnet IDs from the network stack. We used SSM Parameter Store: the network stack wrote outputs as parameters and the EKS stack read them with data "aws_ssm_parameter". That avoided giving the EKS stack read access to the whole network state, which terraform_remote_state would require."

Follow-ups to expect → What happens when an upstream value changes? Why not terraform_remote_state?

Red flags → Hardcoding IDs copied from the console.

All Real-World Interview questions Roadmap: Interview readiness

More on Infrastructure as Code & Terraform state