Hi, I was wondering whether it’s possible to escape reserved characters (i.e. ${...
)?
So suppose I would like to use my/topic/something/${timestamp()}
as an S3 object key for writing to an S3 bucket. ${timestamp()}
is a valid CloudFormation syntax for referencing IoT SQL functions. However, since this syntax is places in Serverless file, the framework will look at it as if I’m referencing Serverless timestamp()
variable and will obviously return an error below:
Invalid variable reference syntax for variable timestamp(). You can only reference env vars, options, & files. You can check our docs for more info.
I tried escaping it with a backslash, but it seems that escaping is then itself escaped as my backslashes are propagated further to the CloudFormation.
Is there any way to correctly escape my example above? That would be a preferred over using a custom variableSyntax
.