a vmware .box is just a tarfile, so you can untar it using the shell-local
post-processor and get the vmdk that way, then use the artifice
post-processor to set that vmdk as the artifact, and then upload that using
the amazon-import post-processor.

On Tue, Aug 11, 2020 at 10:17 PM falconws <[email protected]> wrote:

> I'm using Packer builder like this.
>
> ```
> {
>   "builders": [
>     {
>       "communicator": "ssh",
>       "source_path": "bento/ubuntu-20.04",
>       "provider": "virtualbox",
>       "type": "vagrant",
>       "output_dir": "target",
>       "skip_add": true
>     }
>   ],
>   "provisioners": [
>     {
>       "type": "shell",
>       "script": "packer_script.sh"
>     },
> }
> ```
>
> So this is output target/package.box.
> I want to deploy AWS AMI from this box image.
> How to?
> Maybe use this Post-Processor
> https://www.packer.io/docs/post-processors/amazon-import
>
> But, this post-processor is not supported `.box` image.
> Am I need .box -> .vmdk convert?
> Can I direct import .box to AWS AMI?
>
> Thanks.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/hashicorp/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/ca5f133b-4101-4683-8d07-dacbcb676148n%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/ca5f133b-4101-4683-8d07-dacbcb676148n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAGPV1upaHkUxdfjZKDdKVaqY8u0YYDguy4R%3DVWKcNEZuM9HvWQ%40mail.gmail.com.

Reply via email to