• 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 resolved as for other resources
  • Can use depends_on


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

Graph View