Image tags are not immutable for AWS ECR Repository. This may allow overwriting tags.
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository