github.com/hashicorp/packer@v1.14.3/website/content/docs/templates/hcl_templates/blocks/data.mdx (about) 1 --- 2 description: > 3 The `data` block defines data sources within your Packer configuration. Learn how to configure `data` blocks. 4 page_title: data block referenece 5 --- 6 7 # `data` block 8 9 The `data` block defines data sources within your Packer configuration. The following example instructs Packer to query the `amazon-ami` data source for information to use in the template. 10 11 `@include 'from-1.5/datasources/example-block.mdx'` 12 13 Refer to [Data Sources](/packer/docs/templates/hcl_templates/datasources) for instructions about using the `data` block in your configuration.