serverless-stack-output icon indicating copy to clipboard operation
serverless-stack-output copied to clipboard

Does not seem to work with the latest Serverless version (1.35.1)

Open alexcallow opened this issue 6 years ago • 8 comments

Does not output the file with the latest Serverless version (1.35.1)

alexcallow avatar Jan 08 '19 09:01 alexcallow

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.

philipbarile avatar Jan 17 '19 17:01 philipbarile

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.

joshpassenger avatar Jan 28 '19 06:01 joshpassenger

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)

joshpassenger avatar Jan 28 '19 07:01 joshpassenger

Same issue here with frameworkVersion: "=1.36.3"

ivictbor avatar Feb 05 '19 01:02 ivictbor

@joshpassenger BIG Thank you!

@ivictbor just replace the original with the fork above, and you should be all set.

mkondel avatar Apr 18 '19 12:04 mkondel

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?

ozbillwang avatar May 03 '19 05:05 ozbillwang

Well the reason is just that these PRs (#17 + #18 + #19) already exist. I don't see any reason to combine these to one.

anttiviljami avatar May 03 '19 07:05 anttiviljami

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.

andreimcristof avatar Sep 11 '19 06:09 andreimcristof