AWS::ECR::RegistryPolicyThe AWS::ECR::RegistryPolicy resource creates or updates the permissions policy for a private registry. A private registry policy is used to specify permissions for another AWS-account and is used when configuring cross-account replication. For more information, see [Registry permissions](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html) in the *Amazon Elastic Container Registry User Guide*.
1 configurable property. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
PolicyText | object | Required |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
RegistryId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ECR::RegistryPolicy
Resources:
MyResource:
Type: AWS::ECR::RegistryPolicy
Properties:
PolicyText: {}Permissions CloudFormation needs in your IAM role to manage this resource.
ecr:GetRegistryPolicyecr:PutRegistryPolicyecr:GetRegistryPolicyecr:GetRegistryPolicyecr:GetRegistryPolicyecr:PutRegistryPolicyecr:DeleteRegistryPolicyOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterRegistryId