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.
More on Infrastructure as Code & Terraform state
What did your Terraform state setup look like?IntermediateHow did you structure your Terraform code?BeginnerWhy did you use folders per environment rather than Terraform workspaces (or vice versa)?IntermediateDid you ever have a state lock or corrupted state? What did you do?AdvancedHow did you handle Terraform drift?IntermediateHow did you import existing resources into Terraform?Intermediate