Serverless Framework – Variables resolution error


I have serverless.yaml script that use to work before – next after updating to newer version of SLS (2.72.0) I start getting warning:

my custom section looks like this:

how I can fix this warning?


There is a slight change in variables resolution and in your case, the best way to resolve it would be to use the following syntax:

for resolving the stage. Alternatively, you can use old syntax, but provide explicit fallback value for stage:

I would recommend going with sls:stage version.

Leave a Reply