A Terraform module to create an Amazon Web Services (AWS) Elastic Container Registry (ECR) repository.
module "ecr-repository" {
source = "github.com/opensupplyhub/terraform-aws-ecr-repository?ref=0.1.0"
repository_name = "my-containers"
attach_lifecycle_policy = true
}
repository_name
- Name of the repositoryattach_lifecycle_policy
- If true, an ECR lifecycle policy will be attached (default:false
)lifecycle_policy
- Contents of the ECR lifecycle policy (default: contents ofdefault-lifecycle-policy.json.tpl
, untagged images older than 7 days will be deleted)
arn
- Full ARN of the repositoryname
- Name of the repositoryregistry_id
- Registry ID where the repository was createdrepository_url
- URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName)