Packer with amazon-ebssurrogate, how to get volume id in provisioing script

We are using packer with amazon-ebssurrogate to bootstrap a Debian distro on the empty volume.

We face the problem that the order of the volumes on the surrogate instance is not stable, so we have an elaborate script to find the volume with no partitions.

We were thinking that a better option would be if packer provides the volume-id (that it attached to the surrogate) to the provisioning script, so we can operate on /dev/disk/by-id/nvme-Amazon_Elastic_Block_Store_volxxxxxxxxxxxxxx