I’ve used a modified version of this for 8 years - I didn’t write it. Updating your ECS Docker image is just passing in the parameter of your new image and updating the cloudformation stack.
https://github.com/1Strategy/fargate-cloudformation-example/...