Ops can integrate with your existing UpCloud account. You can use Ops CLI to create and upload an image in UpCloud account. Once, you have uploaded image, you can also create an instance with a particular image using CLI.
Pre-requisites
Create an UpCloud account ().
Set next environment variables.
$ export UPCLOUD_USER=<your account username>
$ export UPCLOUD_PASSWORD=<your account password>
$ export UPCLOUD_ZONE=<location of your images and instances>
Note: Check the available zones in .
You also need to enable API access:
enabling upcloud api
Image Operations
Images for UpCloud are created by directly creating storage through the api not by uploading to a bucket.
Create Image
You can create an image in UpCloud with the following command.
Note: Creating an image can take a while in certain regions. There is a default timeout of 10min but can be adjusted via https://github.com/nanovms/ops/blob/master/provider/upcloud/upcloud.go#L68 . You can see the status live via https://hub.upcloud.com/storage/devices as well.
For creating an image using a particular package, you need to provide the package name to ops image create command with -p option.