realestate-com-au / stackup

a simple CLI and Ruby API for AWS CloudFormation
MIT License
97 stars 34 forks source link

Take template from stdin #17

Closed pvdvreede closed 8 years ago

pvdvreede commented 8 years ago

Is it possible to provide your json template via standard in eg, cfndsl myrubycfntemplate.rb | stackup mystack up -p params_file.

This would be really handy if you use a tool like cfndsl, cfoo, troposphere etc and dont want to have to have an intermediary step of writing the json to a file.

mdub commented 8 years ago

Would bash process substitution be sufficient? Something like:

stackup mystack up -t <(cfndsl myrubycfntemplate.rb) -p params.json
pvdvreede commented 8 years ago

Didnt know about that! Yeah that sounds like it would be fine.