Skip to content

GetDownloadUrlForLayer

Source: src/AWS/ECR/GetDownloadUrlForLayer.ts

Runtime binding for ecr:GetDownloadUrlForLayer.

Resolves a pre-signed S3 download URL for an image layer in the bound repository — the blob-download half of a registry pull. Provide the implementation with Effect.provide(AWS.ECR.GetDownloadUrlForLayerHttp).

const getDownloadUrl = yield* AWS.ECR.GetDownloadUrlForLayer(repository);
const res = yield* getDownloadUrl({ layerDigest: "sha256:…" });
console.log(res.downloadUrl);