Terraform: Documentation Request - Add examples for Python and Ruby

Created on 27 Feb 2017  ยท  3Comments  ยท  Source: hashicorp/terraform

Terraform Version

0.8.7

Resource(s)

It would be great if you can add some examples to use ruby and python as well, similar to Processing JSON in shell scripts

documentation provideexternal

Most helpful comment

@stack72 Yeah, I can find tons of examples elsewhere and I can make things work out. But IMHO documentation should at least have a couple of lines (to refer as a starting point) of how/what to expect input (from Terraform code) in Ruby, Python or any popular language.

For example, I am very good in bash and can code in Ruby as well, but I didn't know that I can do something like JSON.parse(STDIN.read) in ruby. This is just a thought coming from people with rich infra background but are moderately skilled developers. Thanks.

All 3 comments

Hi @vikas027

Thanks for the request here - this resource is a generic resource for executing scripts. The JSON example was just to demonstrate what can be done - we won't be able to start adding other language examples as it would be difficult to understand what we should and shouldn't support

I am pretty sure you can find some examples of Processing JSON in ruby and python on StackOverflow

Thanks

Paul

@stack72 Yeah, I can find tons of examples elsewhere and I can make things work out. But IMHO documentation should at least have a couple of lines (to refer as a starting point) of how/what to expect input (from Terraform code) in Ruby, Python or any popular language.

For example, I am very good in bash and can code in Ruby as well, but I didn't know that I can do something like JSON.parse(STDIN.read) in ruby. This is just a thought coming from people with rich infra background but are moderately skilled developers. Thanks.

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronnix picture ronnix  ยท  3Comments

rjinski picture rjinski  ยท  3Comments

jrnt30 picture jrnt30  ยท  3Comments

pawelsawicz picture pawelsawicz  ยท  3Comments

franklinwise picture franklinwise  ยท  3Comments