Back to Packer

`data` block

website/content/docs/templates/hcl_templates/blocks/data.mdx

1.15.3956 B
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

data block

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.

@include 'from-1.5/datasources/example-block.mdx'

Refer to Data Sources for instructions about using the data block in your configuration.