After resolving #122, we are now properly polling for the status of image transfers. This exposed some issues for users creating large images and distributing them to multiple regions. The transfers are done one at at time. So if the first region errors or times out, the other transfers are never initiated and the initial Droplet is not cleaned up. This PR makes two changes to address this:
Transfers are now done in parallel.
The transfer timeout is now configurable.
An option is provided to not block for the transfers to complete, just initiate and exit.
After resolving #122, we are now properly polling for the status of image transfers. This exposed some issues for users creating large images and distributing them to multiple regions. The transfers are done one at at time. So if the first region errors or times out, the other transfers are never initiated and the initial Droplet is not cleaned up. This PR makes two changes to address this:
Closes: https://github.com/digitalocean/packer-plugin-digitalocean/issues/125 Closes: https://github.com/digitalocean/packer-plugin-digitalocean/issues/129