Skip to content

UploadArchive

Source: src/AWS/Glacier/UploadArchive.ts

Runtime binding for the UploadArchive operation (IAM action glacier:UploadArchive on the vault ARN).

Uploads an archive to the bound Vault in a single request (up to 4 GiB; use the multipart bindings for larger archives). The response carries the new archiveId — Glacier has no list-archives API outside of inventory jobs, so persist it. Provide the implementation with Effect.provide(AWS.Glacier.UploadArchiveHttp).

const uploadArchive = yield* AWS.Glacier.UploadArchive(vault);
const { archiveId, checksum } = yield* uploadArchive({
archiveDescription: "nightly backup",
checksum: treeHash,
body: payload,
});