Skip to content

InitiateLayerUpload

Source: src/AWS/ECR/InitiateLayerUpload.ts

Runtime binding for ecr:InitiateLayerUpload.

Opens a layer-blob upload to the bound repository, returning the uploadId that UploadLayerPart and CompleteLayerUpload continue. Provide the implementation with Effect.provide(AWS.ECR.InitiateLayerUploadHttp).

const initiateUpload = yield* AWS.ECR.InitiateLayerUpload(repository);
const { uploadId } = yield* initiateUpload();