- Le plus récent
- Le plus de votes
- La plupart des commentaires
You can pass the share identifier by creating a step function and pass the aws batch job as a task where the task specifies the following parameters as follows
- JobName: The name of the AWS Batch job
- JobDefinition: The ARN of the AWS Batch job definition
- JobQueue: The ARN of the AWS Batch Job Queue
- ShareIdentifier: The Share Identifier
Then create the EventBridge that triggers the Step Function. For Example, Check out this EventBridge rule that triggers a stepFunction that submits an AWS Batch job with the shared identifier passed as a parameter
{ "Name": "MyEventBridgeRule", "EventPattern": { "source": "batch.amazonaws.com" }, "Targets": [ { "Arn": "arn:aws:states:::states:startExecution", "Id": "MyStepFunction", "Input": { "Parameters" : { "JobName": "job-name", "JobDefinition": "job-definition-arn", "JobQueue": "job-queue-arn", "ShareIdentifier":"my-share-identifier" } } } ] }
Once you have created the EventBridge rule and stepFunction, you can test them by creating an batch event that matches the event pattern in the EventBridge rule
Contenus pertinents
demandé il y a un an
demandé il y a un an
demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 5 ans
