Packer interpolation, use builder values in a provisioner?

Hi, I’m having to switch some things in our CD flow and am kind of coming from the background of using Terraform. Is there a way in packer to interpolate the ip from an ec2 instance packer spins up, to use/handoff in the packer provisioner config sections? I need to do some out of band stuff with the host machine before the AMI is finally baked with packer.

Thanks!

There isn’t a way to do this yet, unfortunately. The good news is that we’re working on it.

In the meantime, the hacky workaround is to pull the IP from the logs using the shell-local provisioner.