Components
Type: aws:core:batchExecArc
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.
imageBuildArgs: {key: value, ...}
The arguments to pass to the Docker build tool.
imageBuildCacheEnabled: true|false
Whether to enable the Docker build cache. Disable to force a rebuild of the image specified by
the imagePath.
imageExtraHash: A string value
An extra value to include in the image hash. Use this to force a rebuild of the image.
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
All
{
"type" : "aws:core:batchExecArc",
"name" : null,
"exclude" : false,
"sources" : { },
"sinks" : { },
"workload" : {
"workloadProps" : { },
"batchRuntimeProps" : {
"memorySizeMB" : 1024,
"vCpu" : 0.25,
"retryAttempts" : 1,
"timeoutMin" : 60,
"architecture" : "X86_64"
},
"lambdaRuntimeProps" : {
"memorySizeMB" : 512,
"retryAttempts" : 3,
"timeoutMin" : 15,
"architecture" : "ARM_64"
},
"computeEnvironmentRef" : null,
"imagePath" : null,
"imageBuildArgs" : { },
"imageBuildCacheEnabled" : true,
"imageExtraHash" : null,
"environment" : { },
"command" : [ ]
}
}