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
What went wrong?
I referenced custom variables in a file two folders higher in the folder hierarchy, and used them to set a variable in serverless.yml. When doing sls deploy, nothing happens, it just 'hangs', with no output, and I have to kill it. Like an infinite loop or recursion.
What did you expect should have happened?
To set the variables properly and deploy ? ^^
What was the config you used?
?
What stacktrace or error message from your provider did you see?
None
It's kinda funny ^^"
Additional Data
Serverless Framework Version you're using: 1.16.1
Operating System: macOS 10.13 beta(17A291j)
Stack Trace: None
Provider Error messages: None
Faulty lines in serverless.yml (makes sls deploy hang indefinitely):
I had a similar issue which turned out to be cyclic references in YML.
@El-Fitz I think in your case it might be that sns.yml references itself under arns.sources.source.action: ${self:custom.sns.topicNames.sources.source.action}. If you change just this (somehow) and try re-deploying does it work?
Reacted by El-Fitz, ab, Nate Hill, maciej-sielski, Alex Wendte and Filippo
Activity
pmuens commentedon Jul 2, 2017
Hey @El-Fitz thanks for reporting 👍
Could you run
serverless packageand see if it still hangs (just to see if it's actually the Serverless Variable system which causes the bug). Thanks!hassankhan commentedon Jul 2, 2017
I had a similar issue which turned out to be cyclic references in YML.
@El-Fitz I think in your case it might be that
sns.ymlreferences itself underarns.sources.source.action:${self:custom.sns.topicNames.sources.source.action}. If you change just this (somehow) and try re-deploying does it work?El-Fitz commentedon Jul 2, 2017
@hassankhan In an amusing way, if I separate the the arns and topic names in two separate files, it works just fine ^^" Thanks ! 👍
I'll set it like this from now, to be able to share the sns .yml files across my 'subproject' ^^
@pmuens Otherwise, without @hassankhan's solution, sls package hangs just the same
pmuens commentedon Jul 3, 2017
Thanks for the investigation @hassankhan 👍 and thanks for confirming @El-Fitz 👍
This seems the be related to #3627, #3740 and #3711.
/cc @eahefnawy
eahefnawy commentedon Aug 23, 2017
@El-Fitz I think #4144 would solve this issue. Could you try it out and let us know if it works? 😊
erikerikson commentedon Aug 23, 2017
#4146 (a branch off of #4144) might be a better target to test with. It solves a serialization related issue I ran into.