When I usually run a task in ECS using Fargate, I am able to see logs in cloudwatch without any complication.
But, whenever I am trying to run task in ECS using EC2 launch type then I am getting:
Run tasks failed
Reasons : ["ATTRIBUTE"]
The strange part is when I uncheck "Auto-configure CloudWatch Logs" using awslogs, I am able to run the task without getting any error but I don't get any logs in Cloudwatch. How can I run the task with "Auto-configure CloudWatch Logs"?
I have gone through this link which pops up in the error message whenever I try to run task in my console. But, I am not getting much out of it. Also, I have gone through this old question but answers are not helpful in resolving my issue.