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

Commit 1c9a6b9

Browse files
Adding parameter substitution implementation example to Batch docs (#1472)
Co-authored-by: MarcelStranak <marcel.stranak@localstack.cloud>
1 parent 0d5b4e7 commit 1c9a6b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

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

156+
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.
157+
This allows the dynamic passing of values at runtime for specific job definitions.
158+
159+
{{< command >}}
160+
$ awslocal batch register-job-definition \
161+
--job-definition-name myjobdefn \
162+
--type container \
163+
--parameters '{"time":"10"}' \
164+
--container-properties '{"image":"busybox","vcpus":1,"memory":128,"command":["sleep","Ref::time"]}'
165+
{{< / command >}}
166+
156167
### Submit a job to the job queue
157168

158169
You can now run a compute job.

0 commit comments

Comments
 (0)