Syntax doesn't fly well with other plugins
Some other Serverless plugins cleanup their strings from special characters, as can be seen here: https://github.com/sbstjn/serverless-dynamodb-autoscaling/blob/master/src/aws/name.ts#L14
What do you think about the following solution?
- Hook in an earlier stage (after the parsing of Serverless variables), and replace this plugin's syntax inside the parsed Serverless config with something like
cfvarsrandomrandom
, while creating a map of which random pattern referred to which cf vars syntax. - In the current hook, look for these random patterns in the template and use the cf vars syntax from the mapping.