[feat] devOps friendly output format (JSON, YAML)
Description
It should be a common use case to integrate Serverless Component into CI/CD pipelines, where outputs are usually parsed with scripts to further trigger other pipelines.
It would be really helpful if serverless deploy and serverless info allows an option for output formats, such as serverless deploy --format json.
This option should implies skipping the deploying TUI progress bar, which also solves #834.
Hello, I am writing PR based on your Issue. What information should be printed out to be of great help?
Thanks for making an effort. So in theory devOps pipelines should be programmatically friendly to parse, in general it should
- Remove CLI progress bar
- Show deployment outputs in JSON format, I am expecting the same data that can be referenced via the syntax
${output:...}in other components.
Aha. So you want information like 'serverless info --debug' to be displayed in JSON or YAML format after the distribution pipeline is terminated?
Yes. Such that I can easily plug my own scripts to grep necessary information into our own CI/CD pipelines. For example I can send the ARN downstream to another repo that updates our k8s proxy.
Thanks for your help! Your answer is more help to this PR!
Glad to be of help!