AWS Fundamentals Logo
AWS Fundamentals
AWS::ECR::RepositoryCreationTemplate

ECR RepositoryCreationTemplate

The details of the repository creation template associated with the request.

Properties

10 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
AppliedFor
Array<string>
Required
Prefix
string
RequiredCreate-only
CustomRoleArn
string
Description
string
EncryptionConfiguration
EncryptionConfiguration
ImageTagMutability
string
ImageTagMutabilityExclusionFilters
Array<ImageTagMutabilityExclusionFilter>
LifecyclePolicy
string
RepositoryPolicy
string
ResourceTags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
CreatedAtstring-
UpdatedAtstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ECR::RepositoryCreationTemplate

Resources:
  MyResource:
    Type: AWS::ECR::RepositoryCreationTemplate
    Properties:
      Prefix: "value"
      AppliedFor: []
      Description: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ecr:CreateRepositoryCreationTemplateecr:PutLifecyclePolicyecr:SetRepositoryPolicyecr:CreateRepositoryiam:CreateServiceLinkedRoleiam:PassRole

read

ecr:DescribeRepositoryCreationTemplates

update

ecr:DescribeRepositoryCreationTemplatesecr:UpdateRepositoryCreationTemplateecr:PutLifecyclePolicyecr:SetRepositoryPolicyecr:CreateRepositoryiam:CreateServiceLinkedRoleiam:PassRole

delete

ecr:DeleteRepositoryCreationTemplate

list

ecr:DescribeRepositoryCreationTemplates

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceECR
Properties12
Required2
TaggingNot supported
Primary IDPrefix

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Prefix

External Links