Skip to main content

download_url_for_layers

Creates, updates, deletes, gets or lists a download_url_for_layers resource.

Overview

Namedownload_url_for_layers
TypeResource
Idaws.ecr.download_url_for_layers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
download_urlstringThe pre-signed Amazon S3 download URL for the requested layer.
layer_digeststringThe digest of the image layer to download. (pattern: <code>[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_download_url_for_layerselectregionRetrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image. When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image. When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached. 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.

SELECT
download_url,
layer_digest
FROM aws.ecr.download_url_for_layers
WHERE region = '{{ region }}' -- required
;