You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
${self:service} and ${self:service.name} are not available in serverless.yml in 1.36.3 #5759
@dschep Your example works fine for me.
Sorry, I missed one detail in my setup because I supposed it was irrelevant. This is my extended serverless.yml , as you see service.name contains variable as well.
Aha. Thanks, I've now recreated the issue. The problem seems to be with when the fallback variable is used in the service name, it's losing the string literal portions:
Activity
first attempt to recreate serverless/serverless#5759
2nd attempt to recreate serverless/serverless#5759
3rd attempt to recreate serverless/serverless#5759
dschep commentedon Jan 28, 2019
Hmm. I wasn't able to replicate the issue. Is the problem recreated for you when you try my test repo? https://github.com/dschep-bug-repos/sls-5759
aaleksandrov commentedon Jan 29, 2019
@dschep Your example works fine for me.
Sorry, I missed one detail in my setup because I supposed it was irrelevant. This is my extended serverless.yml , as you see
service.namecontains variable as well./environments/local.yml:
For 1.34 and older version this setup works well
4th attempt to recreate serverless/serverless#5759
5th attempt to recreate serverless/serverless#5759 success!!
dschep commentedon Jan 29, 2019
Aha. Thanks, I've now recreated the issue. The problem seems to be with when the fallback variable is used in the service name, it's losing the string literal portions:
dschep commentedon Jan 30, 2019
Hey @aaleksandrov, for the time being, here's a workaround:
medikoo commentedon Mar 3, 2021
Fixed with #8987