talos/hack/cloud-image-uploader
Andrey Smirnov 777335f234
chore: improve cloud image uploader resilience
It turns out some S3 regions can't upload a Talos image in 15 minutes,
so rework the code once again to make it more resilient to failures:

* if one region/arch fails, ignore it and go forward
* bump S3 upload timeout to 30 minutes
* previously, a failure to upload failed the errgroup which in turn
  cancels all other uploads, and the whole upload fails.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2025-07-01 20:20:35 +04:00
..
2025-04-15 21:15:36 +04:00
2025-04-15 21:15:36 +04:00
2025-03-24 18:30:21 +04:00

cloud-image-uploader

vmimport role

Role should be pre-created before running this command.

aws iam create-role --role-name vmimport --assume-role-policy-document file://trust-policy.json
aws iam put-role-policy --role-name vmimport --policy-name vmimport --policy-document file://role-policy.json

Google Cloud Pre-requisites

  • GOOGLE_PROJECT_ID - Google Cloud Project ID
  • GOOGLE_CREDENTIALS_JSON - Google Cloud Service Account JSON