我正在使用带有 Fargate 的 X-Ray 守护程序。不幸的是,在守护进程的日志中,我看到如下错误:
[错误] 发送分段批处理失败:NoCredentialProviders:链中没有有效的提供者。已弃用。有关详细消息,请参阅 aws.Config.CredentialsChainVerboseErrors Warn] 将额外批次的发送延迟 0 秒
AWS X-Ray 与 IAM 一起使用:权限:AWSXrayFullAccess
我已经检查过:
- https://github.com/aws-samples/aws-xray-fargate
- https://docs.amazonaws.cn/en_us/xray/latest/devguide/xray-guide.pdf
{
"name" : "xray-daemon",
"image" : "amazon/aws-xray-daemon",
"user" : "1337",
"essential" : true,
"cpu" : "32",
"memoryReservation" : "256",
"portMappings" : [
{
"containerPort" : 2000,
"protocol" : "udp"
}
]
}
],
"requiresCompatibilities" : [ "FARGATE" ],
"taskRoleArn" : "arn:aws:iam::123456789012:role/ecsTaskRole",
"executionRoleArn" : "arn:aws:iam::123456789012:role/ecsTaskExecutionRole",
"networkMode" : "awsvpc"
}