You can use the packer console command https://www.packer.io/docs/commands/console to test out your interpolation
packer console