我正在尝试将 AWS ECS 容器任务日志移动到云手表,我已经为“Logdriver”配置了 IAM 策略和 Terraform 任务,我没有将任何容器集中日志放入 Cloudwatch>>
配置.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"