Consider piece of AWS batch job definition:
MyJobDefinition:
Type: "AWS::Batch::JobDefinition"
Properties:
Type: container
Parameters: {}
JobDefinitionName: "my-job-name"
ContainerProperties:
Command:
- "java"
- "-jar"
- "my-application-SNAPSHOT.jar"
- "--param1"
- "Ref::param1"
- "--param2"
- "Ref::param2"
Which result to call:
java -jar my-application-SNAPSHOT.jar --param1 someValue1 --param2 someValue2
How do I change job definition to make it like this? (notice the =
sign):
java -jar my-application-SNAPSHOT.jar --param1=someValue1 --param2=someValue2
Please note that Ref::param1
is not cloudformation template params, but aws batch job params.