This Terraform module provisions:
- ECR Repository
- ECR Repository Policy
- ECR Lifecycle Policy
name- Name that should be used for the ECR Repository and related resourcestags- Tags that should be applied to all resources in this moduleorganization_id- ID of the organization on AWS Organizations that should have access to the ECR Repositorymax_number_of_images- Maximum number of images that should be kept in the ECR Repository (Default:10)
module "ecr_repo" {
source = "git::https://github.com/albumprinter/infra-terraform-modules.git//modules/aws/ecr_repository?ref="
name = "EcrRepository"
organization_id = "..."
tags = var.tags
}aws_ecr_repositoryaws_ecr_repository_policyaws_ecr_lifecycle_policy