diff --git a/post-processor/yandex-import/post-processor.go b/post-processor/yandex-import/post-processor.go index d8038f3cc..df02f9c78 100644 --- a/post-processor/yandex-import/post-processor.go +++ b/post-processor/yandex-import/post-processor.go @@ -59,7 +59,7 @@ type Config struct { // The name of the image, which contains 1-63 characters and only // supports lowercase English characters, numbers and hyphen. - ImageName string `mapstructure:"image_name" required:"true"` + ImageName string `mapstructure:"image_name" required:"false"` // The description of the image. ImageDescription string `mapstructure:"image_description" required:"false"` // The family name of the imported image. diff --git a/post-processor/yandex-import/post-processor.hcl2spec.go b/post-processor/yandex-import/post-processor.hcl2spec.go index 68d34c2f0..91c5570c3 100644 --- a/post-processor/yandex-import/post-processor.hcl2spec.go +++ b/post-processor/yandex-import/post-processor.hcl2spec.go @@ -23,7 +23,7 @@ type FlatConfig struct { Bucket *string `mapstructure:"bucket" required:"true" cty:"bucket" hcl:"bucket"` ObjectName *string `mapstructure:"object_name" required:"false" cty:"object_name" hcl:"object_name"` SkipClean *bool `mapstructure:"skip_clean" required:"false" cty:"skip_clean" hcl:"skip_clean"` - ImageName *string `mapstructure:"image_name" required:"true" cty:"image_name" hcl:"image_name"` + ImageName *string `mapstructure:"image_name" required:"false" cty:"image_name" hcl:"image_name"` ImageDescription *string `mapstructure:"image_description" required:"false" cty:"image_description" hcl:"image_description"` ImageFamily *string `mapstructure:"image_family" required:"false" cty:"image_family" hcl:"image_family"` ImageLabels map[string]string `mapstructure:"image_labels" required:"false" cty:"image_labels" hcl:"image_labels"` diff --git a/website/pages/partials/post-processor/yandex-import/Config-not-required.mdx b/website/pages/partials/post-processor/yandex-import/Config-not-required.mdx index cefa41b91..9f81776a6 100644 --- a/website/pages/partials/post-processor/yandex-import/Config-not-required.mdx +++ b/website/pages/partials/post-processor/yandex-import/Config-not-required.mdx @@ -15,6 +15,9 @@ after the import process has completed. Possible values are: `true` to leave it in the bucket, `false` to remove it. (Default: `false`). +- `image_name` (string) - The name of the image, which contains 1-63 characters and only + supports lowercase English characters, numbers and hyphen. + - `image_description` (string) - The description of the image. - `image_family` (string) - The family name of the imported image. diff --git a/website/pages/partials/post-processor/yandex-import/Config-required.mdx b/website/pages/partials/post-processor/yandex-import/Config-required.mdx index eacba433a..e1eb67e26 100644 --- a/website/pages/partials/post-processor/yandex-import/Config-required.mdx +++ b/website/pages/partials/post-processor/yandex-import/Config-required.mdx @@ -8,7 +8,4 @@ - `bucket` (string) - The name of the bucket where the qcow2 file will be copied to for import. This bucket must exist when the post-processor is run. - -- `image_name` (string) - The name of the image, which contains 1-63 characters and only - supports lowercase English characters, numbers and hyphen. \ No newline at end of file