I can see that ecr support is available for some time now. But there is no way to attach any lifecycle policy to such ecr repos. With no lfecycle polocies, which means the number of images will keep growing and have memory issues.
ecr: {
images: {
appImage: {
path: ".",
},
},
},
serverless does support maxImageCount attribute but the typescript counterpart doesnt.