pub async fn upload_instance_files(
client: &Client,
bucket: &str,
tag: &str,
instances: &[InstanceConfig],
) -> Result<InstanceFileUrls, Error>Expand description
Uploads binary and config files for instances to S3 with digest-based deduplication.
This function:
- Collects unique binary and config paths across all instances
- Computes SHA256 digests for deduplication
- Uploads unique files to S3 concurrently
- Returns pre-signed URLs mapped by instance name
Files with identical content are uploaded only once, reducing bandwidth and storage.