Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

Serverless Invalid variable reference syntax for variable ([\s\S]+?)

Writer Mia Lopez

I am getting the following error when doing a serverless deploy

Invalid variable reference syntax for variable ([\s\S]+?). You can only reference env vars, options, & files. You can check our docs for more info.

I think it is caused by the following line in my serverless.yml (in the environment block of the provider block):

variableSyntax: "\\${{([\\s\\S]+?)}}"

Why is this invalid? Or is the error actually elsewhere, and if it is, how can I see what line in what file is causing the error?

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy