Interview Prep/Terraform/State and Backends in Production

How do stacks share data: remote state, SSM or data sources?

IntermediateProductionState and Backends in Production
Answer

terraform_remote_state is simple but grants read access to the whole state and couples consumers to output names. Publishing selected values to SSM Parameter Store (or Secrets Manager) gives a controlled, versionable interface that non-Terraform consumers can read too. Data sources that look up by tag or name decouple stacks entirely but need consistent tagging. We use SSM for contracts between teams.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production