Data Source | Terraform

Always learning
2 min read6 hours ago

Data Sources allows you to retrieve information from external data sources and incorporate it into your Terraform configuration.

The retrieved information can then be used as attributes of other resources in the Terraform configuration or incorporated into a template file.

data sources

Terraform Data Sources is a powerful feature that allows you to pull information from external data sources and incorporate them into your Terraform configuration.

Data Source is a mechanism that allows you to reference external data.

Using Data Sources: Data Sources can also take arguments that can be used as queries to retrieve data.

Data Source Arguments: The Data Source value is refreshed when you run the plan, so you can see the actual value when you run the “terraform plan”.

Data Resource Behavior: If the value is known only at runtime, it will be read when the configuration is applied.

The role of the data resource

☑ Get information from external data sources

☑ Incorporating information into your Terraform configuration

☑ Keep your infrastructure clean and easy to read

☑ Keep your infrastructure up to date

--

--

Always learning
Always learning

Written by Always learning

கற்றுக் கொள்ளும் மாணவன்...

No responses yet