Introduction
When building cloud infrastructure, you often need to reuse values and see important results after deployment. Variables let you set values once and use them many times. Outputs show you key information about what you created.
When you want to set the region or project ID once and use it in many places in your configuration
When you need to pass a secret or password safely into your cloud setup
When you want to see the IP address of a virtual machine after it is created
When you want to reuse a network name across multiple resources without typing it repeatedly
When you want to share important information like URLs or IDs with other teams or scripts