From b02401c41b71042bcba50c041adbb99f4554e729 Mon Sep 17 00:00:00 2001 From: Gennady Lipenkov Date: Thu, 9 Jul 2020 02:58:56 +0300 Subject: [PATCH] Update doc and example. --- post-processor/yandex-export/post-processor.go | 7 ++++++- website/pages/docs/post-processors/yandex-export.mdx | 2 +- .../post-processor/yandex-export/Config-required.mdx | 7 ++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/post-processor/yandex-export/post-processor.go b/post-processor/yandex-export/post-processor.go index d213d2e09..433a3cdab 100644 --- a/post-processor/yandex-export/post-processor.go +++ b/post-processor/yandex-export/post-processor.go @@ -27,7 +27,12 @@ import ( type Config struct { common.PackerConfig `mapstructure:",squash"` - // Paths to Yandex Object Storage where exported image will be uploaded + // List of paths to Yandex Object Storage where exported image will be uploaded. + // Please be aware that use of space char inside path not supported. + // Example value `[ + // "s3://bucket-name/image-blob.qcow2", + // ]` + // Also this param support [build](/docs/templates/engine) template function. Paths []string `mapstructure:"paths" required:"true"` // The folder ID that will be used to launch a temporary instance. // Alternatively you may set value by environment variable YC_FOLDER_ID. diff --git a/website/pages/docs/post-processors/yandex-export.mdx b/website/pages/docs/post-processors/yandex-export.mdx index 0085a4f9e..bbced27cc 100644 --- a/website/pages/docs/post-processors/yandex-export.mdx +++ b/website/pages/docs/post-processors/yandex-export.mdx @@ -80,7 +80,7 @@ must have write access to both `s3://packer-export/my-exported-image.qcow2` and "paths": [ "s3://packer-export-bucket/my-exported-image.qcow2", - "s3://packer-export-bucket/image-number-two.qcow2" + "s3://packer-export-bucket/template-supported-get-{{ .ImageID }}-right-here.qcow2" ], "keep_input_artifact": true } diff --git a/website/pages/partials/post-processor/yandex-export/Config-required.mdx b/website/pages/partials/post-processor/yandex-export/Config-required.mdx index 65944cc23..89a9720f1 100644 --- a/website/pages/partials/post-processor/yandex-export/Config-required.mdx +++ b/website/pages/partials/post-processor/yandex-export/Config-required.mdx @@ -1,6 +1,11 @@ -- `paths` ([]string) - Paths to Yandex Object Storage where exported image will be uploaded +- `paths` ([]string) - List of paths to Yandex Object Storage where exported image will be uploaded. + Please be aware that use of space char inside path not supported. + Example value `[ + "s3://bucket-name/image-blob.qcow2", + ]` + Also this param support [build](/docs/templates/engine) template function. - `folder_id` (string) - The folder ID that will be used to launch a temporary instance. Alternatively you may set value by environment variable YC_FOLDER_ID.