Add sharedIdentifier to Event Bridge trigger for Batch

0

I'm trying to setup an aws batch job to run daily. Through the AWS batch GUI I've created the job definition, job queue & compute environment. The job can successfully run when, via batch, a new job is manually configured & submitted. I'm now trying to use an Event Bridge rule to automate the daily job execution but running into an issue. The trigger runs but returns the following error (from CloudTrail):

"responseElements": {
        "message": "shareIdentifier must be specified.",
        "__type": "ClientException"
    },

When manually executing the batch job there's an option to enter a share identifier but when configuring the Event Bridge rule this option doesn't exist.

When defining the Event Bridge rule, the following configuration has been used:

  • Rule Type: Schedule
  • Target:
    • Target Type: AWS Service
    • Select a target: Batch Job queue
    • The job queue, definition & name are entered

Further to this, I've tried to configure target inputs (Constant (JSON text) ) & tried the following approaches:

First Attempt

{
  "ContainerOverrides": {
    "shareIdentifier": "*"
  }
}

Second Attempt

{
  "schedulingPriorityOverride": 1,
  "shareIdentifier": "*"
}

But none of these have worked. In fact, when examining Cloud Trail neither attempt appears in requestParameters.

Any suggestions or working examples for how to solve it?

Yass
질문됨 2년 전102회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠