From 7a4709400b91d501b60a0e15ea291be5c3c5b714 Mon Sep 17 00:00:00 2001 From: lmayorga Date: Thu, 4 Jan 2018 21:49:36 -0500 Subject: [PATCH 1/2] improve documentation when vmware-iso is used on amazon-import post-processr --- .../post-processors/amazon-import.html.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/website/source/docs/post-processors/amazon-import.html.md b/website/source/docs/post-processors/amazon-import.html.md index 0150d4a70..38ab9bc24 100644 --- a/website/source/docs/post-processors/amazon-import.html.md +++ b/website/source/docs/post-processors/amazon-import.html.md @@ -104,6 +104,38 @@ Here is a basic example. This assumes that the builder has produced an OVA artif } ``` +## VMWare Example + +This is an example that uses `vmware-iso` builder and export the `.ova` file using ovftool. + +``` json +"post-processors" : [ + [ + { + "type": "shell-local", + "inline": [ "/usr/bin/ovftool /.vmx /.ova" ] + }, + { + "files": [ + "/.ova" + ], + "type": "artifice" + }, + { + "type": "amazon-import", + "access_key": "YOUR KEY HERE", + "secret_key": "YOUR SECRET KEY HERE", + "region": "us-east-1", + "s3_bucket_name": "importbucket", + "license_type": "BYOL", + "tags": { + "Description": "packer amazon-import {{timestamp}}" + } + } + ] + ] +``` + -> **Note:** Packer can also read the access key and secret access key from environmental variables. See the configuration reference in the section above for more information on what environmental variables Packer will look for. From ccf404ea754f5c5bf5a1a3ce3d3642bc118692db Mon Sep 17 00:00:00 2001 From: lmayorga Date: Sat, 6 Jan 2018 13:13:19 -0500 Subject: [PATCH 2/2] fix typo --- website/source/docs/post-processors/amazon-import.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/post-processors/amazon-import.html.md b/website/source/docs/post-processors/amazon-import.html.md index 38ab9bc24..85d139093 100644 --- a/website/source/docs/post-processors/amazon-import.html.md +++ b/website/source/docs/post-processors/amazon-import.html.md @@ -106,7 +106,7 @@ Here is a basic example. This assumes that the builder has produced an OVA artif ## VMWare Example -This is an example that uses `vmware-iso` builder and export the `.ova` file using ovftool. +This is an example that uses `vmware-iso` builder and exports the `.ova` file using ovftool. ``` json "post-processors" : [