what is difference between resources and data sources in terraform documentation for a particular terraform provider?
resources and data sources in terraform documentation link, can anyone explain their difference and example scenario where they can be used
Solution
Data Sources: Allow Terraform to use information defined outside of Terraform, defined by another separate Terraform configuration, or modified by functions.
Resources: Each resource block describes one or more infrastructure objects, such as virtual networks, compute instances, or higher-level components such as DNS records.