0

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.

Raman Balyan
  • 983
  • 2
  • 16
  • 32
  • Please check if this helps? https://stackoverflow.com/questions/51006654/aws-ecs-run-tasks-failed-reasons-attribute – Raj Jul 01 '20 at 10:38
  • Thanks Raj..I think answers mentioned in this post has been deprecated. Now, EC2 instance automatically launched with ECS cluster. User data script option can be implemented when we manually launch EC2 instance. – Raman Balyan Jul 01 '20 at 11:14

0 Answers0