AWS::ECR::PullThroughCacheRuleThe AWS::ECR::PullThroughCacheRule resource creates or updates a pull through cache rule. A pull through cache rule provides a way to cache images from an upstream registry in your Amazon ECR private registry.
6 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
CredentialArn | string | Create-onlyWrite-only |
CustomRoleArn | string | Create-onlyWrite-only |
EcrRepositoryPrefix | string | Create-only |
UpstreamRegistry | string | Create-onlyWrite-only |
UpstreamRegistryUrl | string | Create-only |
UpstreamRepositoryPrefix | string | Create-only |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ECR::PullThroughCacheRule
Resources:
MyResource:
Type: AWS::ECR::PullThroughCacheRule
Properties:Permissions CloudFormation needs in your IAM role to manage this resource.
ecr:DescribePullThroughCacheRulesecr:CreatePullThroughCacheRuleecr:DeletePullThroughCacheRuleiam:CreateServiceLinkedRolesecretsmanager:GetSecretValueiam:PassRoleecr:DescribePullThroughCacheRulesecr:DescribePullThroughCacheRulesecr:CreatePullThroughCacheRuleecr:DeletePullThroughCacheRuleiam:CreateServiceLinkedRolesecretsmanager:GetSecretValueiam:PassRoleecr:DescribePullThroughCacheRulesecr:DeletePullThroughCacheRuleecr:DescribePullThroughCacheRulesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterEcrRepositoryPrefixThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
EcrRepositoryPrefixUpstreamRegistryUrlCredentialArnUpstreamRegistryCustomRoleArnUpstreamRepositoryPrefix