Overview

  • Read-only data from provider API
  • Don’t cause Terraform to make any infrastructure changes

Local-Only Data Sources

  • e.g. file—read local file
  • Local only—temporary, recalculated on each run

Dependencies

  • Dependencies resolved as for other resources
  • Can use depends_on

Lifecycle

  • Data source read during refresh phase if no dependencies/references to computed values e.g. resource attributes
  • Otherwise read during apply phase

Graph View