aws ecr complete-layer-upload
Informs Amazon ECR that the image layer upload has completed for a specified registry, repository name, and upload ID. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To complete an image layer upload
The following complete-layer-upload example completes an image layer upload to the layer-test repository.
aws ecr complete-layer-upload --repository-name layer-test --upload-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --layer-digests a1b2c3d4-5678-90ab-cdef-EXAMPLE11111:48074e6d3a68b39aad8ccc002cdad912d4148c0f92b3729323eIdentify--repository-nameThe name of the repository to associate with the image layer.--upload-idThe upload ID from a previous InitiateLayerUpload operation to associate with the image layer.--layer-digestsThe sha256 digest of the image layer.Its output
{
"uploadId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"layerDigest": "sha256:9a77f85878aa1906f2020a0ecdf7a7e962d57e882250acd773383224b3fe9a02",
"repositoryName": "layer-test",
"registryId": "123456789012"
}For more information, see Pushing an image to an Amazon ECR private repository in the Amazon ECR User Guide.
Options
--layer-digestsThe sha256 digest of the image layer.--registry-idThe Amazon Web Services account ID associated with the registry to which to upload layers.--repository-nameThe name of the repository to associate with the image layer.--upload-idThe upload ID from a previous InitiateLayerUpload operation to associate with the image layer.