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

Commit fe6d67f

Browse files
committed
Adding parameter substitution implementation example to Batch docs
1 parent eb033a6 commit fe6d67f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/user-guide/aws/batch/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ You should see the following output:
153153
}
154154
```
155155

156+
In case that you would like to pass the arguments to the command as **parameters**, it can be done by using the `Reff::` declaration to set placeholders for parameter substitution:
157+
158+
{{< command >}}
159+
$ awslocal batch register-job-definition \
160+
--job-definition-name myjobdefn \
161+
--type container \
162+
--parameters '{"time":"10"}' \
163+
--container-properties '{"image":"busybox","vcpus":1,"memory":128,"command":["sleep","Reff::time"]}'
164+
{{< / command >}}
165+
156166
### Submit a job to the job queue
157167

158168
You can now run a compute job.

0 commit comments

Comments
 (0)