嗨,我已经安排了 Cloudwatch规则,以便在每周三 GTM 14.15 运行,目标是 AWS Batch,它总是返回FailedInvocation。我从关联的指标中看到了 FailedInvocation 事件
但是没有关于错误的日志,我无法理解这个问题。
我已经按照本教程进行操作:https : //docs.aws.amazon.com/batch/latest/userguide/batch-cwe-target.html 我从几个小时就被困在这里有什么建议吗?
配置
AWS 批处理目标配置如下:
- 作业队列= arn:..
- 工作定义 = arn:...
- 职位名称 =姓名
与目标关联的角色具有以下策略:
arn:aws:iam::aws:policy/service-role/AWSBatchServiceEventTargetRole
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "batch:SubmitJob" ], "Resource": "*" } ] }
arn:aws:iam::216314997889:role/awsInvokeActionOnEc2
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "cloudwatch:Describe*", "ec2:Describe*", "ec2:RebootInstances", "ec2:StopInstances", "ec2:TerminateInstances" ], "Resource": "*" } ] }
和信任关系
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "events.amazonaws.com" }, "Action": "sts:AssumeRole" } ] }