If you're actively debugging an image build, it's likely that this can be dealt with via the `-debug`[1] flag.
Otherwise, if you intend to use Packer to purely spin up a machine to do something, you're likely better off using Vagrant, vagrant-digitaloean[2] and vagrant-aws[3] respectively.
Packer is designed to create images for use later – whereas Vagrant is more designed to boot and manage communication with a "running" machine, for use immediately (typically for development).
Finally, you're not "wrong" for wanting to do this! It makes sense if you have all of that configuration to use it for another reason – just thinking it may be easier to use Vagrant, and you may be able to find tools better suited for "immediate" machine use in that ecosystem.
Viktor – keep_input_artifact is more for post_processors, which I don't think applies here. The artifact in this case would be a DigitalOcean image or AMI, not the running machine.