Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Adding parameter substitution implementation example to Batch docs #1472

Merged
merged 5 commits into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions content/en/user-guide/aws/batch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ You should see the following output:
}
```

If you want to pass arguments to the command as [parameters](https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html#parameters), you can use the `Ref::` declaration to set placeholders for parameter substitution.
This allows the dynamic passing of values at runtime for specific job definitions.

{{< command >}}
$ awslocal batch register-job-definition \
--job-definition-name myjobdefn \
--type container \
--parameters '{"time":"10"}' \
--container-properties '{"image":"busybox","vcpus":1,"memory":128,"command":["sleep","Ref::time"]}'
{{< / command >}}

### Submit a job to the job queue

You can now run a compute job.
Expand Down