From cc1605fe9419aec1a007502c7ea58eb4b8f1bba6 Mon Sep 17 00:00:00 2001 From: Gennady Lipenkov Date: Wed, 8 Jul 2020 21:56:13 +0300 Subject: [PATCH] Add init doc --- .../docs/post-processors/yandex-import.mdx | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 website/pages/docs/post-processors/yandex-import.mdx diff --git a/website/pages/docs/post-processors/yandex-import.mdx b/website/pages/docs/post-processors/yandex-import.mdx new file mode 100644 index 000000000..154e90857 --- /dev/null +++ b/website/pages/docs/post-processors/yandex-import.mdx @@ -0,0 +1,70 @@ +--- +description: > + The Yandex.Cloud Compute Image Import post-processor create an image from a + qcow2 image (or from provided Storage object in near future). + It uploads qcow2 to Yandex Object Storage and create new one Compute Image + in target folder. +layout: docs +page_title: Yandex.Cloud Compute Image Import - Post-Processors +sidebar_title: Yandex.Cloud Compute Import +--- + +# Yandex.Cloud Compute Image Import Post-Processor + +Type: `yandex-import` + +The Yandex.Cloud Compute Image Import post-processor create new Compute Image +from a qcow2 file. As Compute service support image creation from Storage service object +just before request to create its upload file into Storage service. + + +Assigned Service Account must have write permissions to the Yandex Object Storage. +A new temporary static access keys from assigned Service Account used to upload +file. + + +## Configuration + + +### Required: + +@include 'post-processor/yandex-import/Config-required.mdx' + +### Optional: + +@include 'post-processor/yandex-import/Config-not-required.mdx' + + +## Basic Example + + + +```json +{ + "variables": { + "token": "{{env `YC_TOKEN`}}" + }, + "sensitive-variables": ["token"], + "builders": [ + { + "type": "file", + "source": "xenial-server-cloudimg-amd64-disk1.img", + "target": "test_artifact.qcow2" + } + ], + "post-processors": [ + { + "type": "yandex-import", + "token": "{{user `token`}}", + "folder_id": "b1g8jvfcgmitdrslcn86", + "service_account_id": "ajeui8kdvg8qs44fbrbr", + + "bucket": "bucket1", + + "image_name": "my-first-imported-image-{{isotime \"02-Jan-06-03-04-05\" | lower }}", + + "keep_input_artifact": false + } + ] +} +```