»The data block

The data block defines data sources within your Packer configuration.

# datasource.pkr.hcl
data "amazon-ami" "basic-example" {
  // ...
}
# datasource.pkr.hcldata "amazon-ami" "basic-example" {  // ...}

»More on data sources