Introduction
When you build cloud resources in separate groups called stacks, you often need to share information between them. Outputs let one stack share values like resource IDs or URLs so another stack can use them easily.
When you create a database in one stack and want to connect your app in another stack to that database.
When you deploy a network setup in one stack and need to use its subnet IDs in another stack.
When you want to share a storage bucket name created in one stack with another stack that uploads files.
When you separate your infrastructure into parts for easier management but still need them to work together.
When you want to avoid hardcoding resource details and instead get them dynamically from another stack.