This template creates an Amazon Elastic Container Registry (Amazon ECR) repository named `test-repository`. The repository policy allows the users `Bob` and `Alice` to push and pull images.

CloudFormation Template

AWSTemplateFormatVersion: '2010-09-09'
Description: ECR Repository with Example Policy
Resources:
  MyRepository:
    Type: 'AWS::ECR::Repository'
    Properties:
      RepositoryName: undefined
      RepositoryPolicyText:
        Version: undefined
        Statement:
          - Sid: undefined
            Effect: undefined
            Principal:
              AWS:
                - undefined
                - undefined
            Action:
              - undefined
              - undefined
              - undefined
              - undefined
              - undefined
              - undefined
              - undefined