Configuring lifecycle policies
If you have followed along in this chapter, you will have published the todobackend image to your ECR repository several times, and chances are, you will have created what are known as orphan images in your ECR repository. In earlier chapters, we discussed orphaned images that were being created in your local Docker Engine, and defined these an image whose tag has been superseded by a newer image, effectively leaving the older images nameless and hence "orphaned."
If you browse to your ECR repository and select the Images tab in the ECS console, you may notice that you have a few images that no longer have a tag, which will be because you pushed several images with the latest
tag, that have superseded the now-orphaned images:
Orphaned ECR images
In the preceding figure, notice that your storage usage in ECR has now tripled, even though you only have one current latest
image, which means you may also be paying triple the storage costs. Of course you can manually...