Files
zuul-jobs/roles/upload-image-s3/README.rst
Simon Westphahl da66b4eb41 Allow upload-image-s3 role to export S3 URLS
In order to directly import images from S3 in AWS we need the s3://
instead of the default HTTP URL.

Make this configurable via a config flag.

Change-Id: I51279bf176a7e7a877d0939113cb8b55f3c46520
2025-10-15 10:03:01 +02:00

2.8 KiB

Upload a filesystem image to an S3 bucket

This uploads a filesystem image (for example, one built by diskimage builder) to an S3 bucket. The role returns an artifact to Zuul suitable for use by the zuul-launcher.

If a raw or vhd image is provided, upload_image_s3_compress_image is true and the zstd command is available, it will be compressed in the way that zuul-launcher expects.

Role Variables

The endpoint to use when uploading an image to an s3 compatible service. By default this will be automatically constructed by boto but should be set when working with non-AWS hosted s3 service.

AWS access key to use.

AWS secret key for the AWS access key.

This role will not create buckets which do not already exist.

Note that you will want to set this to a value that uniquely identifies your Zuul installation.

The bucket should be dedicated to image uploads so that the "delete_after" option may be safely used.

The image format (e.g., qcow2).