pull_through_cache_rule
Gets an individual pull_through_cache_rule
resource
Overview
Name | pull_through_cache_rule |
Type | Resource |
Description | pull_through_cache_rule |
Id | awscc.ecr.pull_through_cache_rule |
Fields
Name | Datatype | Description |
---|---|---|
ecr_repository_prefix | string | The ECRRepositoryPrefix is a custom alias for upstream registry url. |
upstream_registry_url | string | The upstreamRegistryUrl is the endpoint of upstream registry url of the public repository to be cached |
credential_arn | string | The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that identifies the credentials to authenticate to the upstream registry. |
upstream_registry | string | The name of the upstream registry. |
region | string | AWS 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