With packer I can script up the creation of a template linux box and upload to my vsphere cloud instance as a vmware box. I'd like it to be uploaded or converted to a vsphere template so then I can run terraform on this template to automate the creation of multiple linux based VMs. How can I do this? I currently need to manually right click on the uploaded VM in vsphere and click "Convert to Template" at which point terraform will happily generate and customise multiple instances of the base linux box.
Is there a mechanism with packer/terraform for automating this? If so what is it?