title: How are data sources used in Terraform?
body: <p>The <a href="https://www.terraform.io/docs/configuration/data-sources.html" rel="noreferrer">Terraform Data Sources documentation</a> tells me what a data source is, but I do not quite understand it. Can somebody give me a use case of data source? What is the difference between it and configuring something using variables?</p>