You must be logged in to view saved presets
Configures a Batch Job Definition for multiple nodes, specifying container properties for each node.
resource "aws_batch_job_definition" "test" {
name = "tf_test_batch_job_definition_multinode"
node_properties = jsonencode({
mainNode = 0
nodeRangeProperties = [
{
container = {
command = ["ls", "-la"]
image = "busybox"
memory = 128
vcpus = 1
}
targetNodes = "0:"
},
{
container = {
command = ["echo", "test"]
image = "busybox"
memory = 128
vcpus = 1
}
targetNodes = "1:"
}
]
numNodes = 2
})
type = "multinode"
}