Amazon Elastic Container Registry (ECR) now allows you specify exceptions to image tag immutability setting. You can now provide a list of tag filters to exempt certain tags from the tag immutability setting, allowing you to enforce immutability for most tags while retaining flexibility for others.
ECR image tag settings allows you to control whether repository tags can be overwritten. You may set image tags to either mutable which allows tags to be overwritten, or immutable which prevents tags from being overwritten. With ECR support for exception to tag immutability, ECR can now enforce mutability or immutability for all tags except certain tags based on the list of tag filters that you specify. For example, you can now enforce immutability for production tags while retaining flexibility for certain tags such as latest to remain mutable for development, testing, and automation workflows.
ECR’s support for exception to tag mutability and immutability is generally available in all AWS commercial and AWS GovCloud (US) Regions at no additional cost. For more details, visit our documentation.
Source:: Amazon AWS