I am trying to move AWS ECS Container task logs to cloud watch, I have configured IAM Policy also Terraform task for "Logdriver", I'm not getting any container centralized logs into Cloudwatch>>
Cofiguration.JSON>>>
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "app-api",
"awslogs-region": "eu-west-1",
"awslogs-stream-prefix": "app-logs"
}
}
ecs.tf>>
"elasticloadbalancing:DeregisterTargets",
"elasticloadbalancing:Describe*", "elasticloadbalancing:Describe*",
"elasticloadbalancing:RegisterInstancesWithLoadBalancer", "elasticloadbalancing:RegisterInstancesWithLoadBalancer",
"elasticloadbalancing:RegisterTargets" "elasticloadbalancing:RegisterTargets",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:DescribeLogStreams",
"logs:PutSubscriptionFilter",
"logs:PutLogEvents"