Creates a repository on ECR (and associated policies) that other accounts can be given push and pull access to.
-
Creates a repository on ECR
-
Creates a policy to allow other accounts push and pull access
-
Creates a lifecycle policy that expires images as follows:
-
Retain only X untagged images (configurable, default is 1). This rule in itself should stop most issues.
-
For each Element in the new variable
protected_image_tag_prefixes
(defaults to an empty list), retain only Y (configurable, default is 1) images whose tag starts with each of the elements ofprotected_image_tag_prefixes
-
Retain only Z images in total (configurable, default is 100).
-
-
Enable/Disable vulnerability scan on image push (default enabled)
See the basic example to see how to use this module