Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Install.sh Info_Output.yml is not a valid YAML #386

Closed
organom opened this issue Jul 20, 2021 · 2 comments
Closed

Install.sh Info_Output.yml is not a valid YAML #386

organom opened this issue Jul 20, 2021 · 2 comments

Comments

@organom
Copy link

organom commented Jul 20, 2021

The install.sh directs the output to a file called Info_Output.yml in

SLS_DEPRECATION_DISABLE=* yarn run serverless info --verbose --region $region --stage $stage && SLS_DEPRECATION_DISABLE=* yarn run serverless info --verbose --region $region --stage $stage > Info_Output.yml

Late it also executes parse_yaml in

eval $( parse_yaml Info_Output.yml )

By seeing the official documentation at https://www.serverless.com/framework/docs/providers/aws/cli-reference/info/ , its obvious that it doesn't output valid YAML format, since it has the headers Service Information and Stack Outputs.

Please don't have a .yml extension in a file that is not valid YAML OR make sure to write a proper YAML file (by removing the non-yaml components of the output).

@ilyash-b
Copy link

eval $( parse_yaml Info_Output.yml )

parse_yaml is then misnamed because it parses invalid yaml

@SanketD92
Copy link
Contributor

A fix has been merged for this bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants