Files

15 lines
650 B
Plaintext
Raw Permalink Normal View History

2021-01-20 11:05:03 +01:00
---
2025-01-21 19:30:41 -08:00
page_title: Data sources overview
2021-01-20 11:05:03 +01:00
description: |
2025-01-21 19:30:41 -08:00
A data source holds data you want to use in the Packer configuration. Define a data source in your configuration so that Packer can use external data during builds.
2021-01-20 11:05:03 +01:00
---
2025-01-21 19:30:41 -08:00
# Data sources
2021-01-20 11:05:03 +01:00
2022-09-14 16:16:39 -04:00
Data sources let Packer fetch data to use in a template, including information defined outside of Packer.
2021-01-20 11:05:03 +01:00
2023-01-27 11:47:08 -06:00
Refer to the [`data`](/packer/docs/templates/hcl_templates/datasources) block documentation to learn more about working with data sources. The documentation also contains details about each type of data source.
2025-01-21 19:30:41 -08:00
Data sources are only available in HCL2 templates and require Packer `v1.7.0` and newer.