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ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ