Since April 2022 AWS Batch supports updateToLatestImageVersion argument in aws_batch_compute_environment https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResourceUpdate.html#Batch-Type-ComputeResourceUpdate-updateToLatestImageVersion
This issues has been reported as resolved before (https://github.com/hashicorp/terraform-provider-aws/issues/25285), which is incorrect I think. The aws provider does not support update_to_latest_image_version yet.
aws_batch_compute_environment (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/batch_compute_environment#compute_resources)
update_to_latest_image_version = true/false
None