serverless-stack-output
serverless-stack-output copied to clipboard
Does not seem to work with the latest Serverless version (1.35.1)
Does not output the file with the latest Serverless version (1.35.1)
Does not output the file with the latest Serverless version (1.35.1)
After upgrading serverless to 1.35.1 the other day, I have noticed this too, although it also intermittently works for me.
I moved the serverless package back to the following versions and noticed it as well:
1.35.0
1.34.0
1.33.0
It finally worked again for me when I went back to 1.32.0.
I can confirm this silently doesn't write any output files or invoke my script using serverless: 1.36.1
Does anyone have a workaround other than regression? I need later features so this is not feasible.
I use this plugin to create web config files that details things like the API Gateway endpoints, things just stopped working silently after an AWS region change and clean deploy.
Workaround is to use this fork:
https://github.com/anttiviljami/serverless-stack-output
Install via:
npm install @anttiviljami/serverless-stack-output
Reference from serverless.yml:
plugins:
- '@anttiviljami/serverless-stack-output'
(Note quotes)
Same issue here with frameworkVersion: "=1.36.3"
@joshpassenger BIG Thank you!
@ivictbor just replace the original with the fork above, and you should be all set.
plugin '@anttiviljami/serverless-stack-output'
work with sls v1.41.1
@anttiviljami
Any reason you don't raise PR and merge the change to the main stream?
Well the reason is just that these PRs (#17 + #18 + #19) already exist. I don't see any reason to combine these to one.
Confirmed that this doesnt work.
Also, last commit was in 2017 so this is most probably abandoned.
Maybe it helps someone - I ended up avoiding this and instead using a plugin that just runs whatever custom script you feed it, on the event of finished deployment - in the script then I just use filestream to write a file with the exact desired serverless vars in the format I needed.