substitutions permalink

You can use substitution tokens, aka string interpolation, where specified for context items. This substitutes anything between {curly braces} with the context value for that key.

This also works where you have dictionaries/lists inside dictionaries/lists. For example, if your context looked like this:

bucketValue: the.bucket
keyValue: dont.kick
moreArbText: wild
awsClientIn:
  serviceName: s3
  methodName: get_object
  methodArgs:
    Bucket: '{bucketValue}'
    Key: '{keyValue}'

This will run s3 get_object to retrieve file dont.kick from the.bucket.

  • Bucket: '{bucketValue}' becomes Bucket: the.bucket
  • Key: '{keyValue}' becomes Key: dont.kick

In json & yaml, curlies need to be inside quotes to make sure they parse as strings.

Escape literal curly braces with doubles: {{ for {, }} for }

Substitutions support much more powerful functionality, which you can find at text {substitution} formatting expressions.

last updated on .