Terraform Data Source

Terraform Data Source

Terraform Data Source

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed terraform variable file.

https://cloudaffaire.com/terraform-variable-file/

In this blog post, we will discuss terraform data source.

What is Terraform data source?

Data sources allow data to be fetched or computed for use elsewhere in Terraform configuration. Use of data sources allows a Terraform configuration to build on information defined outside of Terraform, or defined by another separate Terraform configuration.

Data Source Syntax:

Data Source demo:

Hope you have enjoyed this article. In the next blog post, we will discuss terraform output.

To get more details on terraform, please refer below terraform documentation

https://www.terraform.io/docs/index.html

 

Leave a Reply

Close Menu