Including potential TOKEN information in container definition may cause sensitive information disclosure.
For Amazon ECS best practices, see the AWS documentation (below).
In Terraform -
References:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition