Brains4Cloud
ESEN

Terraform

Terraform Data Source

A configuration block that queries information about existing infrastructure (created inside or outside of Terraform) without managing or modifying it. Syntax: data "type" "local_name" { filter arguments }.

On the exam

In Terraform Associate it's distinguished from a resource: a resource creates/manages infrastructure; a data source only reads. Question: reference the ID of a VPC created manually in the console to use it in a new subnet → data source, not resource.

Related terms

More Terraform terms

See the whole glossary →