Skip to content

Initiate Layer Upload

ecr_initiate_layer_upload R Documentation

Notifies Amazon ECR that you intend to upload an image layer

Description

Notifies Amazon ECR that you intend to upload an image layer.

When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

Usage

ecr_initiate_layer_upload(registryId, repositoryName)

Arguments

registryId

The Amazon Web Services account ID associated with the registry to which you intend to upload layers. If you do not specify a registry, the default registry is assumed.

repositoryName

[required] The name of the repository to which you intend to upload layers.

Value

A list with the following syntax:

list(
  uploadId = "string",
  partSize = 123
)

Request syntax

svc$initiate_layer_upload(
  registryId = "string",
  repositoryName = "string"
)