AWS::ECR::PublicRepositoryThe AWS::ECR::PublicRepository resource specifies an Amazon Elastic Container Registry Public (Amazon ECR Public) repository, where users can push and pull Docker images, Open Container Initiative (OCI) images, and OCI compatible artifacts. For more information, see [Amazon ECR public repositories](https://docs.aws.amazon.com/AmazonECR/latest/public/public-repositories.html) in the *Amazon ECR Public User Guide*.
4 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
RepositoryCatalogData | object | |
RepositoryName | string | Create-only |
RepositoryPolicyText | objectstring | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ECR::PublicRepository
Resources:
MyResource:
Type: AWS::ECR::PublicRepository
Properties:
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ecr-public:CreateRepositoryecr-public:SetRepositoryPolicyecr-public:PutRepositoryCatalogDataecr-public:TagResourceecr-public:DescribeRepositoriesecr-public:GetRepositoryPolicyecr-public:GetRepositoryCatalogDataecr-public:ListTagsForResourceecr-public:DescribeRepositoriesecr-public:SetRepositoryPolicyecr-public:DeleteRepositoryPolicyecr-public:PutRepositoryCatalogDataecr-public:TagResourceecr-public:UntagResourceecr-public:DeleteRepositoryecr-public:DescribeRepositoriesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterRepositoryNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
RepositoryName