Skip to main content

pull_through_cache_rule

Gets an individual pull_through_cache_rule resource

Overview

Namepull_through_cache_rule
TypeResource
Descriptionpull_through_cache_rule
Idawscc.ecr.pull_through_cache_rule

Fields

NameDatatypeDescription
ecr_repository_prefixstringThe ECRRepositoryPrefix is a custom alias for upstream registry url.
upstream_registry_urlstringThe upstreamRegistryUrl is the endpoint of upstream registry url of the public repository to be cached
credential_arnstringThe Amazon Resource Name (ARN) of the AWS Secrets Manager secret that identifies the credentials to authenticate to the upstream registry.
upstream_registrystringThe name of the upstream registry.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
ecr_repository_prefix,
upstream_registry_url,
credential_arn,
upstream_registry
FROM awscc.ecr.pull_through_cache_rule
WHERE data__Identifier = '<EcrRepositoryPrefix>';

Permissions

To operate on the pull_through_cache_rule resource, the following permissions are required:

Read

ecr:DescribePullThroughCacheRules

Update

ecr:DescribePullThroughCacheRules,
ecr:CreatePullThroughCacheRule,
ecr:DeletePullThroughCacheRule,
iam:CreateServiceLinkedRole,
secretsmanager:GetSecretValue

Delete

ecr:DescribePullThroughCacheRules,
ecr:DeletePullThroughCacheRule