Using terraform to deploy AWS ECS service

I am currently using terraform to deploy the services on AWS ECS Fargate.

The terraform code seems pretty clear and working fine as well. However, after the terraform apply, we need to manually login to aws console and see if the service/task is running there or not. I am not sure if there is any way to find these from terraform after apply:

  • How many tasks are deployed?
  • Is the task running sucessfully or not?

Any suggestions are appreciated.