Serverless deploy studdenly stopped working

lambda
aws

#1

Hi Everyone,

I am actively using serverless from past 2 months and it works perfectly with AWS and deploying code is best experience. But today strangely I was not able to deploy one of my many service. I went into my project folder and entered

sls deploy

After that I got an error “Invalid variable reference syntax for variable code. You can only reference env vars, options, & files. You can check our docs for more info.”

I really dont know what happed. Please guide me to fix this issue.


#2

Problem got fixed, I had a use case where I had to show a custom message to user, so I was using javascript template literals string in environment variable.After I removed my recent changes things started working as before.