Components

Type: aws:core:batchExecArc

Synopsis

Create an AWS Batch Exec Arc.

Description

Allows custom code to be run inside a Docker image on AWS Batch as dataset availability events
are published.
When using an aws:core:batchExecArc, a compute environment is required to execute the Docker image.
Currently only Fargate is supported.

The "command" is the same as that would be sent to a docker image on execution.

Values in the command array may be JsonPath expressions back into the current context.
e.g. ['--lot', '$.arcNotifyEvent.lot', '--manifest', '$.arcNotifyEvent.manifest']

Available paths:
    $.arcNotifyEvent.lot - the current lot
    $.arcNotifyEvent.manifest - URI to the current manifest file
    $.arcNotifyEvent.dataset.name - the dataset name
    $.arcNotifyEvent.dataset.version - the dataset version
    $.arcNotifyEvent.dataset.pathURI - the URI to the root of the dataset

imagePath: A relative path
    The path to the Docker image to build.

environment: {key: value, ...}
    The environment variables to set in the Docker image.

command: [command, ...]
    The command to execute in the Docker image.

batchRuntimeProps: These only apply to the AWS Batch job that executes the Docker image.

lambdaRuntimeProps: These only apply to the Lambda functions used to manage the AWS Batch
    jobs within the arc.

Template

Required

{
  "type" : "aws:core:batchExecArc",
  "name" : null,
  "sources" : { },
  "sinks" : { }
}

All

{
  "type" : "aws:core:batchExecArc",
  "name" : null,
  "exclude" : false,
  "sources" : { },
  "sinks" : { },
  "workload" : {
    "workloadProps" : { },
    "batchRuntimeProps" : {
      "memorySizeMB" : 1024,
      "retryAttempts" : 1,
      "timeoutMin" : 60,
      "architecture" : "X86_64"
    },
    "lambdaRuntimeProps" : {
      "memorySizeMB" : 512,
      "retryAttempts" : 3,
      "timeoutMin" : 15,
      "architecture" : "ARM_64"
    },
    "computeEnvironmentRef" : null,
    "imagePath" : null,
    "environment" : { },
    "command" : [ ]
  }
}