Using CloudFormation to delete a stack that contains an ECR with images results in a failure message:
The repository with name 'my-repo' in registry with id '123' cannot be deleted because it still contains images
The CLI provides a way of overriding this by using the --force flag:
aws ecr delete-repository --repository-name my-repo --force
How can I achieve the same result by solely using CloudFormation?