doingcloudright/terraform-aws-ecr-cross-account
This Terraform module creates an ECR repo with cross-account access. The module simplifies the creation of an ECR bucket, which serves different AWS accounts and different stages of development. Lifecycle policy rules can be passed as a list of strings inside lifecycle_policy_rules.